/* Firma Falsa — perizie grafologiche. Stile: blu notte, luce fredda, serif classico */

/* Font ospitati in locale (GDPR: nessuna chiamata a Google Fonts). Font variabili, subset latin, licenza SIL OFL. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter.woff2) format("woff2"); }
:root {
  --notte: #050b1a;
  --notte-2: #0a1530;
  --notte-3: #102046;
  --blu: #3d8bff;
  --blu-luce: #8fc2ff;
  --ghiaccio: #e8f1ff;
  --testo: #c9d6ec;
  --testo-tenue: #8d9bb8;
  --linea: rgba(143, 194, 255, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--notte);
  color: var(--testo);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--blu-luce); }
a:hover { color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--ghiaccio); }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
em.corsivo { font-family: var(--serif); font-style: italic; color: var(--blu-luce); }

.contenitore { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(5, 11, 26, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.header .contenitore { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { text-decoration: none; line-height: 1; }
.logo b { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: .18em; color: var(--ghiaccio); }
.logo i { font-family: var(--serif); font-size: 1.6rem; color: var(--blu-luce); margin-left: 4px; text-shadow: 0 0 12px rgba(61,139,255,.6); }
.logo small { display: block; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--testo-tenue); margin-top: 5px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a { color: var(--testo); text-decoration: none; font-size: .92rem; letter-spacing: .02em; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--blu); }
.menu-toggle { display: none; background: none; border: 1px solid var(--linea); border-radius: 4px; padding: 8px 12px; font: inherit; color: var(--ghiaccio); cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--notte); border-bottom: 1px solid var(--linea); }
  .nav.aperto { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav li a { display: block; padding: 11px 0; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 100px;
  background: var(--notte);
  border-bottom: 1px solid var(--linea);
}
/* Fondo: copia sfocata e scurita dell'immagine, riempie tutta la larghezza (niente bande vuote) */
.hero::before {
  content: ""; position: absolute; inset: -40px; z-index: 0;
  background: url("../img/hero-lente-stilografica.jpg") center / cover no-repeat;
  filter: blur(22px) brightness(.42) saturate(1.2);
}
/* Immagine vera: sempre intera in altezza, ancorata in basso a destra
   (la stilografica non va MAI tagliata), bordo sinistro sfumato */
.hero::after {
  content: ""; position: absolute; z-index: 1; right: 0; bottom: 0; height: 100%;
  aspect-ratio: 1080 / 593;
  background: url("../img/hero-lente-stilografica.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}
.hero .contenitore { position: relative; z-index: 2; }
.hero .contenitore::before { /* velo sotto al testo per la leggibilità */
  content: ""; position: absolute; z-index: -1; top: -110px; bottom: -100px; left: -100vw; right: 35%;
  background: linear-gradient(90deg, rgba(5,11,26,.85) 0%, rgba(5,11,26,.85) calc(100vw - 20px), rgba(5,11,26,0) 100%);
  pointer-events: none;
}
@media (max-width: 860px) {
  /* schermi stretti: il testo sta sopra l'immagine, che resta visibile ma più tenue */
  .hero::after { opacity: .55; }
  .hero .contenitore::before { right: -100vw; background: rgba(5,11,26,.35); }
}
.marchio { position: relative; display: inline-block; line-height: .85; margin-bottom: 28px; }
.marchio .firma {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(4.2rem, 15vw, 10rem); letter-spacing: .08em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(200, 225, 255, .85);
  text-shadow: 0 0 40px rgba(61,139,255,.35);
}
.marchio .falsa {
  position: absolute; left: 28%; bottom: -14%;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(3rem, 10vw, 6.6rem); color: #fff;
  text-shadow: 0 0 18px rgba(143,194,255,.9), 0 0 50px rgba(61,139,255,.7);
}
.valori { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--testo); margin: 26px 0 18px; }
.valori span { color: var(--blu); margin: 0 .5em; }
.hero .claim { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ghiaccio); line-height: 1.3; max-width: 520px; border-top: 1px solid var(--linea); padding-top: 18px; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* H1 SEO, visivamente nascosto */
.hero .sotto { color: var(--testo); max-width: 560px; }

/* Sezioni */
.sezione { padding: 84px 0; }
.sezione.alt { background: linear-gradient(180deg, var(--notte-2), var(--notte)); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.occhiello { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--blu); font-weight: 600; margin-bottom: .8em; }
.intro { font-size: 1.15rem; color: var(--testo); max-width: 680px; }
.testo { max-width: 760px; }
.testo h2 { margin-top: 1.5em; }
.testo li { margin-bottom: .4em; }

/* Bottoni */
.bottoni { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }
.bottone { display: inline-block; text-decoration: none; padding: 14px 28px; border-radius: 2px; font-weight: 500; letter-spacing: .04em; background: var(--blu); color: #fff; border: 1px solid var(--blu); box-shadow: 0 0 24px rgba(61,139,255,.35); }
.bottone:hover { background: #5a9dff; color: #fff; }
.bottone.secondario { background: transparent; color: var(--ghiaccio); border-color: var(--linea); box-shadow: none; }
.bottone.secondario:hover { border-color: var(--blu-luce); }

/* Schede */
.griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 40px; }
.scheda { background: linear-gradient(160deg, rgba(16,32,70,.75), rgba(10,21,48,.6)); border: 1px solid var(--linea); border-radius: 3px; padding: 30px; }
.scheda h3 { font-size: 1.45rem; }
.scheda p:last-child { margin-bottom: 0; }
.scheda .num { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--blu); line-height: 1; display: block; margin-bottom: 10px; }

/* Due colonne */
.due-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .due-col { grid-template-columns: 1fr; gap: 32px; } }
.foto-slot { aspect-ratio: 4/5; border: 1px solid var(--linea); background: radial-gradient(circle at 50% 40%, rgba(61,139,255,.25), var(--notte-2)); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--testo-tenue); font-size: .9rem; padding: 20px; }

/* Foto */
.foto { width: 100%; max-width: 450px; border: 1px solid var(--linea); box-shadow: 0 0 50px rgba(61,139,255,.25); }
.ritratto { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blu); box-shadow: 0 0 24px rgba(61,139,255,.45); margin-bottom: 22px; }

/* Credenziali */
.credenziali { list-style: none; padding: 0; margin: 0; }
.credenziali li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--linea); position: relative; }
.credenziali li::before { content: "✦"; position: absolute; left: 0; color: var(--blu); }

/* FAQ */
details { border-bottom: 1px solid var(--linea); padding: 18px 0; }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.35rem; color: var(--ghiaccio); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--blu); display: inline-block; width: 1.2em; }
details[open] summary::before { content: "–"; }
details p { margin: 12px 0 0 1.2em; }

/* Contatti */
.contatti-lista { list-style: none; padding: 0; margin: 0; }
.contatti-lista li { padding: 16px 0; border-bottom: 1px solid var(--linea); }
.contatti-lista strong { display: block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--testo-tenue); font-weight: 500; }

/* Modulo contatti */
.modulo { display: grid; gap: 18px; }
.modulo label { display: grid; gap: 6px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--testo-tenue); }
.modulo input, .modulo select, .modulo textarea {
  font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none;
  color: var(--ghiaccio); background: rgba(16,32,70,.55); border: 1px solid var(--linea); border-radius: 2px; padding: 12px 14px; width: 100%;
}
.modulo select option { background: var(--notte-2); }
.modulo input:focus, .modulo select:focus, .modulo textarea:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 3px rgba(61,139,255,.25); }
.modulo .campi-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .modulo .campi-2 { grid-template-columns: 1fr; } }
.modulo .consenso { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: normal; font-size: .9rem; color: var(--testo); }
.modulo .consenso input { width: auto; margin-top: 4px; accent-color: var(--blu); }
.modulo .nota { font-size: .88rem; color: var(--testo-tenue); margin: 0; }
.modulo button { justify-self: start; cursor: pointer; font: inherit; }
.modulo button:disabled { opacity: .6; cursor: wait; }
.nascosto { display: none; }
.esito { margin: 0; min-height: 1.5em; }
.esito.ok { color: #7ee0a8; }
.esito.errore { color: #ff9b9b; }

/* Segnaposto da compilare */
.da-compilare { background: rgba(255, 200, 60, .18); outline: 1px dashed #e0b040; padding: 0 3px; color: #ffe3a0; }

/* Footer */
.footer { background: #03070f; border-top: 1px solid var(--linea); padding: 54px 0 30px; font-size: .9rem; color: var(--testo-tenue); }
.footer .contenitore { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.footer strong { color: var(--ghiaccio); }
.footer .legale { grid-column: 1 / -1; border-top: 1px solid var(--linea); padding-top: 20px; font-size: .8rem; }
