/*
Theme Name: Orografie Talk
Theme URI: https://orografie.it
Author: Orografie
Description: Landing page "with orografie — Talk": poster evento, dettagli del talk e form di registrazione con email di conferma, promemoria automatici e link Google Calendar. Tutti i testi si modificano da Aspetto › Personalizza › Talk Orografie.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orografie-talk
*/

/* Font self-hosted (nessuna chiamata esterna: GDPR friendly) */
@font-face {
  font-family: "DF Camino";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/DF-Camino.woff2") format("woff2");
}

/* ---------- Stili ---------- */
:root {
  --ot-bg: #0a0b0a;
  --ot-card: #111311;
  --ot-field: #181a18;
  --ot-line: #2a2d2a;
  --ot-yellow: #e8f500;
  --ot-yellow-hover: #f2ff3d;
  --ot-text: #f3f3ee;
  --ot-muted: #a7a9a3;
  --ot-label: #b9bbb5;
  --ot-font-display: "DF Camino", "Arial Narrow", system-ui, sans-serif;
  --ot-font-body: "DF Camino", "Arial Narrow", system-ui, sans-serif;
  --ot-font-mono: "DF Camino", "Arial Narrow", system-ui, sans-serif;
  --ot-wrap: 700px;
  --ot-radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
.ot-landing input, .ot-landing textarea, .ot-landing button { font-synthesis: none; }

body.ot-landing {
  margin: 0;
  background-color: var(--ot-bg);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  color: var(--ot-text);
  font-family: var(--ot-font-body);
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

.ot-landing img { max-width: 100%; height: auto; display: block; }
.ot-landing a { color: var(--ot-yellow); }
.ot-landing a.ot-btn { color: #0a0b0a; }
.ot-landing a.ot-btn--ghost { color: var(--ot-yellow); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.ot-page {
  padding: 42px 24px 0;
}

.ot-wrap {
  max-width: var(--ot-wrap);
  margin: 0 auto;
}

/* ---------- Badges ---------- */
.ot-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 27px;
}
.ot-badge {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  padding: 6px 13px;
  font-family: var(--ot-font-mono);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  border: 1px solid var(--ot-yellow);
  color: var(--ot-yellow);
}
.ot-badge--solid {
  background: var(--ot-yellow);
  color: #0a0b0a;
}

/* ---------- Poster ---------- */
.ot-poster {
  max-width: 650px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #222;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.ot-poster__img { width: 100%; }

/* ---------- Sections ---------- */
.ot-section { padding: 54px 0 0; }
.ot-section--form { padding-top: 84px; }

.ot-eyebrow {
  margin: 0;
  font-family: var(--ot-font-mono);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ot-yellow);
  line-height: 1.3;
}
.ot-title {
  margin: 0 0 12px;
  font-family: var(--ot-font-display);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ot-text);
}
.ot-title span { color: var(--ot-yellow); }
.ot-lead {
  margin: 0 0 30px;
  color: var(--ot-label);
  font-size: 21px;
  line-height: 1.5;
}
.ot-lead strong { color: var(--ot-yellow); font-weight: 400; }

/* ---------- Info grid ---------- */
.ot-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ot-line);
  border-radius: var(--ot-radius);
  background: var(--ot-card);
  overflow: hidden;
  margin: 0;
}
.ot-info__cell {
  padding: 23px 22px 21px;
  border-bottom: 1px solid var(--ot-line);
  margin: 0;
}
.ot-info__cell:nth-child(odd) { border-right: 1px solid var(--ot-line); }
.ot-info__cell:nth-last-child(-n+2) { border-bottom: 0; }
.ot-info dt {
  font-family: var(--ot-font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ot-muted);
  margin-bottom: 8px;
  line-height: 1.3;
}
.ot-info dd { margin: 0; }
.ot-info__value {
  display: block;
  font-family: var(--ot-font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ot-text);
}
.ot-info__value--accent {
  color: var(--ot-yellow);
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 2px;
}
.ot-info__sub {
  display: block;
  font-size: 17px;
  color: var(--ot-muted);
  line-height: 1.5;
}

/* ---------- Form ---------- */
.ot-card {
  border: 1px solid var(--ot-line);
  border-radius: 12px;
  background: var(--ot-card);
  padding: 50px 30px 56px;
}
.ot-form { margin: 0; }
.ot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ot-field { margin: 0 0 24px; min-width: 0; }
.ot-field label {
  display: block;
  font-family: var(--ot-font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ot-label);
  margin-bottom: 7px;
  line-height: 1.5;
}
.ot-req { color: var(--ot-yellow); margin-left: 0.55em; }

.ot-input {
  width: 100%;
  min-height: 57px;
  padding: 14px 16px;
  font: inherit;
  font-size: 18px;
  color: var(--ot-text);
  background: var(--ot-field);
  border: 1px solid var(--ot-line);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ot-input::placeholder { color: #6f726c; opacity: 1; }
.ot-input:focus {
  border-color: var(--ot-yellow);
  box-shadow: 0 0 0 3px rgba(232, 245, 0, 0.14);
}
textarea.ot-input {
  min-height: 102px;
  resize: vertical;
  line-height: 1.5;
}
.ot-input.is-invalid { border-color: #ff6b5b; }

.ot-consent {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 2px 0 26px;
  padding-left: 4px;
  cursor: pointer;
  font-family: var(--ot-font-mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ot-label);
  line-height: 1.55;
}
.ot-consent input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  -webkit-appearance: none;
  appearance: none;
  background: #3a3c3a;
  border: 1px solid #6b6d69;
  border-radius: 3px;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.ot-consent input::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #0a0b0a;
  border-bottom: 2px solid #0a0b0a;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.ot-consent input:checked { background: var(--ot-yellow); border-color: var(--ot-yellow); }
.ot-consent input:checked::after { opacity: 1; }
.ot-consent input:focus-visible { outline: 2px solid var(--ot-yellow); outline-offset: 2px; }
.ot-consent.is-invalid input { border-color: #ff6b5b; }

.ot-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 59px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--ot-yellow);
  color: #0a0b0a;
  font-family: var(--ot-font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.ot-btn:hover { background: var(--ot-yellow-hover); }
.ot-btn:active { transform: translateY(1px); }
.ot-btn:focus-visible { outline: 2px solid var(--ot-text); outline-offset: 3px; }
.ot-btn[disabled] { opacity: .6; cursor: progress; }
.ot-btn--ghost {
  background: transparent;
  color: var(--ot-yellow);
  border: 1px solid var(--ot-yellow);
}
.ot-btn--ghost:hover { background: rgba(232, 245, 0, .08); }

.ot-note {
  margin: 17px 0 0;
  text-align: center;
  font-size: 17px;
  color: var(--ot-label);
}
.ot-alert {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ff6b5b;
  color: #ffb3aa;
  font-size: 16px;
}
.ot-alert[hidden] { display: none; }

/* Success */
.ot-success { text-align: center; padding: 4px 0 0; }
.ot-success[hidden], .ot-success [hidden] { display: none !important; }
.ot-success:focus { outline: none; }
.ot-success__icon {
  width: 70px; height: 70px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--ot-yellow);
  color: #0a0b0a;
  display: grid; place-content: center;
  font-size: 34px; line-height: 1;
}
.ot-success__title {
  margin: 0 0 14px;
  font-family: var(--ot-font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ot-text);
}
.ot-success__text {
  margin: 0 auto 26px;
  max-width: 510px;
  color: var(--ot-muted);
  font-size: 18px;
  line-height: 1.6;
}
.ot-success__text strong { color: var(--ot-text); font-weight: 400; }
.ot-access {
  max-width: 550px;
  margin: 0 auto 26px;
  padding: 22px 25px 25px;
  border: 1px dashed rgba(232, 245, 0, 0.75);
  border-radius: 10px;
  background: #151715;
  text-align: left;
}
.ot-access__label {
  margin: 0 0 17px;
  text-align: center;
  font-family: var(--ot-font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ot-muted);
  line-height: 1.4;
}
.ot-landing .ot-access__meet { min-height: 64px; font-size: 19px; }
.ot-access__audio {
  margin: 14px 16px 16px;
  font-size: 17px;
  color: var(--ot-muted);
  line-height: 1.45;
}
.ot-access__audio[hidden] + .ot-access__cal { margin-top: 14px; }
.ot-landing .ot-access__cal { min-height: 66px; font-size: 19px; }
.ot-success__note {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--ot-muted);
  line-height: 1.55;
}
.ot-success__note a { color: var(--ot-yellow); text-decoration: underline; text-underline-offset: 2px; }
.ot-landing .ot-success__edit {
  display: inline-flex;
  width: auto;
  min-height: 61px;
  padding: 12px 27px;
  font-size: 19px;
}

/* ---------- Footer ---------- */
.ot-footer {
  padding: 88px 24px 70px;
  text-align: center;
  font-family: var(--ot-font-mono);
  color: var(--ot-label);
}
.ot-footer__brand {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.ot-footer__line {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body.ot-landing { font-size: 17px; }
  .ot-page { padding: 28px 16px 0; }
  .ot-badge { font-size: 12px; min-height: 33px; }
  .ot-row { grid-template-columns: 1fr; gap: 0; }
  .ot-card { padding: 30px 18px 34px; }
  .ot-info { grid-template-columns: 1fr; }
  .ot-info__cell:nth-child(odd) { border-right: 0; }
  .ot-info__cell:nth-last-child(2) { border-bottom: 1px solid var(--ot-line); }
  .ot-consent { font-size: 13px; letter-spacing: 0.1em; gap: 12px; }
  .ot-btn { font-size: 18px; }
  .ot-footer { padding: 64px 16px 48px; }
  .ot-access { padding: 18px 14px 18px; }
  .ot-access__label { font-size: 12px; letter-spacing: 0.08em; }
  .ot-landing .ot-access__meet, .ot-landing .ot-access__cal { font-size: 17px; }
  .ot-access__audio { margin: 12px 4px 14px; }
  .ot-success__title { font-size: 25px; }
  .ot-success__text { font-size: 17px; }
  .ot-footer__line { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
