/* ==========================================================================
   Studio Tecnico Nicola Colella — Livello grafico "Tavola"
   Va caricato DOPO /assets/index-DGosrfL_.css
   Palette: pece, carta da lucido, grafite, ottone, riga
   Segno distintivo: la quota (linea di misura) e il cartiglio
   ========================================================================== */

:root {
  /* --- Colore ------------------------------------------------------- */
  --ink:          #101c18;   /* pece: hero, footer, titoli            */
  --ink-2:        #1a2b25;
  --ink-3:        #24382f;
  --paper:        #f5f2ea;   /* carta da lucido                        */
  --paper-2:      #ece7db;
  --white:        #ffffff;
  --muted:        #6a736c;   /* grafite                                */
  --line:         #d2ccbd;   /* riga                                   */
  --accent:       #b0762a;   /* ottone                                 */
  --accent-dark:  #8d5d1e;
  --accent-lit:   #e0ab55;   /* ottone chiaro, su fondo scuro          */
  --accent-soft:  #f0e3cd;
  --verde:        #2e6b57;   /* verde rilievo, solo conferme           */
  --sand:         #e6e0d2;

  /* --- Elevazione ---------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(16, 28, 24, .06);
  --shadow:    0 18px 44px rgba(16, 28, 24, .10);
  --shadow-lg: 0 32px 80px rgba(16, 28, 24, .16);

  /* --- Geometria ------------------------------------------------------ */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;

  /* --- Ritmo verticale fluido ------------------------------------------ */
  --sp-section: clamp(64px, 8.5vw, 128px);
  --sp-block:   clamp(32px, 4vw, 56px);

  /* --- Tipografia ------------------------------------------------------ */
  --font-display: var(--font-geist-sans), "Helvetica Neue", Arial, sans-serif;
  --font-body:    var(--font-geist-sans), "Helvetica Neue", Arial, sans-serif;
  --font-label:   var(--font-geist-mono), ui-monospace, "SFMono-Regular", monospace;

  --t-h1: clamp(2.75rem, 1.4rem + 5.4vw, 5.25rem);
  --t-h2: clamp(1.9rem,  1.15rem + 2.9vw, 3.1rem);
  --t-h3: clamp(1.12rem, 1rem + .45vw, 1.4rem);
  --t-body: clamp(1rem, .96rem + .18vw, 1.075rem);
  --t-lead: clamp(1.06rem, .98rem + .42vw, 1.25rem);
  --t-label: .688rem;
}

/* ==========================================================================
   1. Base
   ========================================================================== */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  letter-spacing: -.006em;
}

::selection { background: var(--accent); color: #fff; }

.section { padding: var(--sp-section) 0; }
.container { width: min(1240px, 100% - clamp(32px, 6vw, 72px)); }

h1, h2, h3 { font-family: var(--font-display); }

/* Accessibilità: focus sempre visibile, in ottone */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.hero a:focus-visible,
.page-hero a:focus-visible,
.cta-section a:focus-visible,
.site-footer a:focus-visible { outline-color: var(--accent-lit); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   2. Etichette e quota — il segno distintivo
   ========================================================================== */

/* Micro-etichetta in monospace: la voce delle annotazioni di tavola */
.eyebrow {
  font-family: var(--font-label);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 18px;
  padding-left: 22px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 14px;
  height: 1px;
  background: currentColor;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 1px;
  height: 8px;
  background: currentColor;
}
.eyebrow.light { color: var(--accent-lit); }

/* La quota: linea di misura con estremi a 45°, usata come divisore */
.quota {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: var(--sp-block) 0;
}
.quota::before,
.quota::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--ink);
  transform: rotate(45deg);
}
.quota::before { left: 0; }
.quota::after  { right: 0; }
.quota[data-misura]::after {
  content: attr(data-misura);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
  background: var(--paper);
  padding: 0 10px;
  top: -.7em;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
}

/* Indici numerici: mono, in ottone */
.card-index,
.review-index,
.method-number,
.method-step > span,
.client-list span {
  font-family: var(--font-label);
  color: var(--accent);
  letter-spacing: .08em;
  font-weight: 500;
}

/* ==========================================================================
   3. Testata
   ========================================================================== */

.site-header {
  background: rgba(245, 242, 234, .88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { height: 78px; }

.brand-mark {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xs);
  font-family: var(--font-label);
  letter-spacing: .1em;
  width: 42px; height: 42px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(224, 171, 85, .38);
  border-radius: 1px;
}
.brand-copy small {
  font-family: var(--font-label);
  letter-spacing: .16em;
  color: var(--muted);
}

.main-nav > a { font-size: 13.5px; font-weight: 550; letter-spacing: -.005em; }
.main-nav > a:not(.nav-cta)::after { background: var(--accent); height: 1.5px; bottom: -6px; }

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  padding: 11px 18px;
  font-size: 13px;
}
.nav-cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* ==========================================================================
   4. Hero — la tavola
   ========================================================================== */

.hero, .page-hero {
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(176, 118, 42, .16), transparent 58%),
    var(--ink);
  color: var(--paper);
}
.hero { min-height: min(88vh, 760px); }
.hero-layout { min-height: min(88vh, 760px); gap: clamp(40px, 6vw, 88px); }

/* griglia millimetrata di fondo, più fine e discreta */
.hero-grid {
  opacity: .18;
  background-image:
    linear-gradient(rgba(245, 242, 234, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 234, .10) 1px, transparent 1px),
    linear-gradient(rgba(245, 242, 234, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 234, .05) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
  mask-image: linear-gradient(105deg, #000 8%, transparent 72%);
  -webkit-mask-image: linear-gradient(105deg, #000 8%, transparent 72%);
}
.hero::after { display: none; }

.hero h1, .page-hero h1 {
  font-size: var(--t-h1);
  font-weight: 640;
  letter-spacing: -.045em;
  line-height: .97;
}
.hero h1 em {
  color: var(--accent-lit);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 340;
  letter-spacing: -.05em;
}
.hero-copy > p, .page-hero p {
  color: rgba(245, 242, 234, .72);
  font-size: var(--t-lead);
  line-height: 1.62;
  max-width: 34ch;
}
.page-hero p { max-width: 52ch; }

/* riga di fiducia: quotata sopra, come una misura riportata */
.hero-trust {
  color: rgba(245, 242, 234, .58);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .1em;
  padding-top: 26px;
  margin-top: 40px;
  border-top: 1px solid rgba(245, 242, 234, .16);
  gap: 28px;
}
.hero-trust svg { color: var(--accent-lit); }

/* ==========================================================================
   5. Pulsanti
   ========================================================================== */

.button {
  border-radius: var(--r-sm);
  min-height: 52px;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.008em;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), background .22s, border-color .22s, box-shadow .22s;
}
.button svg { transition: transform .22s cubic-bezier(.2,.7,.3,1); }
.button:hover svg { transform: translateX(3px); }

.button.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(176, 118, 42, .28); }
.button.primary:hover { background: var(--accent-dark); box-shadow: 0 14px 32px rgba(176, 118, 42, .34); }
.button.ghost { background: transparent; border-color: rgba(245, 242, 234, .32); color: var(--paper); }
.button.ghost:hover { background: rgba(245, 242, 234, .08); border-color: rgba(245, 242, 234, .6); }
.button.dark { background: var(--ink); color: var(--paper); }
.button.dark:hover { background: var(--accent); color: #fff; }
.button.outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.button.outline:hover { background: var(--ink); color: var(--paper); }

.text-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-dark);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.text-link:hover { border-bottom-color: currentColor; }
.text-link.light-link { color: var(--accent-lit); }

/* ==========================================================================
   6. Contenitori immagine — pronti per le foto reali
   ========================================================================== */

.photo-placeholder,
.project-image,
.portfolio-placeholder,
.about-photo,
.portrait-placeholder,
.map-placeholder,
.article-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(16,28,24,.045) 0 2px, transparent 2px 11px),
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
/* quando arriva la foto vera: <img> riempie e ritaglia senza deformare */
.photo-placeholder img,
.project-image img,
.portfolio-placeholder img,
.about-photo img,
.portrait-placeholder img,
.article-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* il riquadro nell'apertura resta scuro: vive su fondo pece */
.photo-placeholder {
  height: auto;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(45deg, rgba(245,242,234,.028) 0 2px, transparent 2px 11px),
    linear-gradient(155deg, #2b433a, #16241f 60%, #0c1613);
  border-color: rgba(245, 242, 234, .14);
  box-shadow: var(--shadow-lg);
}
.project-image, .portfolio-placeholder { aspect-ratio: 3 / 2; }
.about-photo, .portrait-placeholder { aspect-ratio: 4 / 5; }
.map-placeholder { aspect-ratio: 16 / 9; }

.technical-lines { opacity: .5; }
.visual-label {
  font-family: var(--font-label);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(245, 242, 234, .62);
}
.measure-note {
  background: rgba(16, 28, 24, .82);
  border: 1px solid rgba(224, 171, 85, .24);
  border-radius: var(--r-sm);
}
.measure-note strong { color: var(--accent-lit); font-family: var(--font-label); }
.measure-note span { font-family: var(--font-label); letter-spacing: .14em; }

.floating-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
}
.floating-card svg { color: var(--accent); }

/* ==========================================================================
   7. Titoli di sezione
   ========================================================================== */

.section-heading h2 {
  font-size: var(--t-h2);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.08;
  max-width: 20ch;
}
.section-heading p {
  color: var(--muted);
  font-size: var(--t-lead);
  max-width: 58ch;
  margin-top: 18px;
}
.intro-section h2, .clarity-section h2, .decision-section h2 {
  font-size: var(--t-h2);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.1;
}

/* ==========================================================================
   8. Schede servizio
   ========================================================================== */

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .26s cubic-bezier(.2,.7,.3,1), box-shadow .26s, border-color .26s;
}
/* filo d'ottone che si estende al passaggio: la quota che si apre */
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sand);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card h3 {
  font-size: var(--t-h3);
  font-weight: 620;
  letter-spacing: -.022em;
  margin: 14px 0 10px;
}
.service-card p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.service-card .card-index { font-size: 11px; letter-spacing: .16em; }
.card-link {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-top: 20px;
}

/* ==========================================================================
   9. Metodo — le fasi, unite da una quota
   ========================================================================== */

.method-section { background: var(--ink); color: var(--paper); }
.method-section .section-heading h2 { color: var(--paper); }
.method-section .section-heading p { color: rgba(245, 242, 234, .68); }

/* via il numerone decorativo di fondo: la quota basta */
.method-section::after { display: none; }

.method-track { position: relative; padding-top: 34px; border-top: 0; }
/* la linea di misura che attraversa le fasi */
.method-track::before {
  content: "";
  position: absolute;
  top: 12px; left: 0; right: 0;
  height: 1px;
  background: rgba(224, 171, 85, .32);
}
.method-step { position: relative; padding-top: 6px; }
.method-step::before {
  content: "";
  position: absolute;
  top: -28px; left: 0;
  width: 1px; height: 9px;
  background: var(--accent-lit);
  transform: rotate(45deg);
}
.method-step > span {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent-lit);
}
.method-step h3 {
  font-size: 1.02rem;
  font-weight: 620;
  letter-spacing: -.02em;
  margin: 10px 0 8px;
  color: var(--paper);
}
.method-step p { color: rgba(245, 242, 234, .62); font-size: .92rem; line-height: 1.58; }

/* elenco metodo nella pagina dedicata */
.method-list .method-number {
  font-size: 12px;
  letter-spacing: .16em;
}

/* ==========================================================================
   10. Portfolio — il cartiglio
   ========================================================================== */

.project-card, .portfolio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .26s cubic-bezier(.2,.7,.3,1), box-shadow .26s;
}
.project-card:hover, .portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* blocco dati in basso, come il cartiglio di una tavola */
.project-info, .portfolio-body {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--line);
}
.project-info small, .portfolio-body > small {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.project-info h3, .portfolio-body h3 {
  font-size: 1.08rem;
  font-weight: 620;
  letter-spacing: -.022em;
  margin: 10px 0 8px;
}
.project-info p { color: var(--muted); font-size: .92rem; }

.technical-data {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.filter-row button {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.filter-row button:hover { border-color: var(--ink); color: var(--ink); }
.filter-row button.selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ==========================================================================
   11. Blog, FAQ, valori, clienti
   ========================================================================== */

.blog-card, .value-grid > *, .clarity-grid > * {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .24s cubic-bezier(.2,.7,.3,1), box-shadow .24s;
}
.clarity-grid > * { border-top: 3px solid var(--accent); }

/* Queste due schede nascono su fondo scuro: restano scure */
.included-card {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(245, 242, 234, .1);
  border-radius: var(--r-md);
}
.included-card h2 {
  color: var(--paper);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 620;
  letter-spacing: -.03em;
  line-height: 1.12;
}
.included-card .eyebrow { color: var(--accent-lit); }
.included-card li { color: rgba(245, 242, 234, .82); border-top-color: rgba(245, 242, 234, .14); }
.included-card li::before { background: var(--accent-lit); border-radius: 1px; }
.included-card .included-note { color: rgba(245, 242, 234, .55); }

.credential-card {
  background: var(--accent-dark);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.credential-card small { color: rgba(255, 255, 255, .75); font-family: var(--font-label); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-meta {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.blog-card h3 { font-size: 1.05rem; font-weight: 620; letter-spacing: -.022em; }

.faq-list > * {
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.faq-list h3, .faq-list summary { font-size: 1.02rem; font-weight: 600; letter-spacing: -.018em; }

.client-list > div {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  transition: padding-left .24s cubic-bezier(.2,.7,.3,1), border-color .24s;
}
.client-list > div:hover { padding-left: 12px; border-color: var(--accent); }
.client-list span { font-size: 11px; letter-spacing: .18em; }
.client-list strong { font-weight: 580; letter-spacing: -.015em; }

.review-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px;
}
.quote-mark { color: var(--accent); opacity: .35; }

/* ==========================================================================
   12. Modulo contatti
   ========================================================================== */

.contact-form,
.contact-cards > *,
.map-placeholder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.contact-cards > * { padding-left: 16px; padding-right: 16px; margin-bottom: 8px; }
.contact-cards { border-top: 0; }

.contact-form label:not(.privacy-check),
.form-row label:not(.privacy-check),
.file-label {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 118, 42, .14);
}
/* Il consenso privacy deve restare leggibile: niente maiuscoletto */
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: .875rem;
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  text-align: left;
  margin: 22px 0 20px;
}
.privacy-check input[type="checkbox"] {
  width: 18px; height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.privacy-check a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

.recaptcha-wrap {
  margin: 20px 0 4px;
  min-height: 78px;
}
.recaptcha-wrap .g-recaptcha {
  max-width: 100%;
}
.recaptcha-status {
  margin: 8px 0 0;
  color: #7d2d1c;
}
.submit-button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.submit-button { width: 100%; }
.form-note, .included-note {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted);
  line-height: 1.6;
}
.form-message {
  background: #fdf2f0;
  border: 1px solid #e6c2ba;
  border-left: 3px solid #b4462f;
  border-radius: var(--r-sm);
  color: #7d2d1c;
  padding: 14px 16px;
  font-size: .92rem;
  margin-bottom: 20px;
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   13. Richiamo finale, piè di pagina, WhatsApp
   ========================================================================== */

.cta-section, .inner-cta {
  background:
    radial-gradient(100% 120% at 10% 0%, rgba(176, 118, 42, .18), transparent 60%),
    var(--ink);
  color: var(--paper);
}
.cta-section h2, .inner-cta h2 {
  font-size: var(--t-h2);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--paper);
}
.cta-section p, .inner-cta p { color: rgba(245, 242, 234, .7); }

.site-footer { background: var(--ink); color: rgba(245, 242, 234, .7); }
.site-footer h3 {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-lit);
  margin-bottom: 16px;
  font-weight: 500;
}
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--accent-lit); }
.footer-brand .brand-mark { background: var(--paper); color: var(--ink); }
.footer-bottom {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(245, 242, 234, .45);
  border-top: 1px solid rgba(245, 242, 234, .12);
  padding-top: 26px;
  margin-top: 44px;
}

.whatsapp-float {
  background: #1f9d54;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(31, 157, 84, .34);
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(31, 157, 84, .42); }

/* banner cookie */
.cookie-banner {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(245, 242, 234, .16);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.cookie-banner strong { color: var(--accent-lit); }
.cookie-banner button {
  border-radius: var(--r-sm);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 11px 18px;
  cursor: pointer;
  border: 1px solid rgba(245, 242, 234, .3);
  background: transparent;
  color: var(--paper);
}
.cookie-banner button.accept { background: var(--accent); border-color: var(--accent); color: #fff; }

/* pagine legali */
.legal-alert {
  background: var(--accent-soft);
  border: 1px solid #e0cba4;
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  color: #6d4913;
}
.legal-date, .legal-section h2 { letter-spacing: -.02em; }
.prose-block p, .legal-copy p { max-width: 68ch; }

/* ==========================================================================
   14. Mobile
   ========================================================================== */

@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero, .hero-layout { min-height: auto; }
  .hero-layout { padding-top: 56px; padding-bottom: 64px; }
}

@media (max-width: 860px) {
  .menu-button { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px 24px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .main-nav > a::after { display: none; }
  .nav-cta { border-bottom: 0; margin-top: 16px; text-align: center; padding: 15px 18px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 15px; }
  .method-track::before { display: none; }
  .method-step::before { display: none; }
  .method-step {
    border-left: 1px solid rgba(224, 171, 85, .3);
    padding-left: 18px;
  }
}

/* ==========================================================================
   15. Testi lunghi: articoli del blog e pagine legali
   ========================================================================== */

.legal-copy {
  max-width: 72ch;
  margin-inline: auto;
  font-size: clamp(1.02rem, .98rem + .22vw, 1.135rem);
  line-height: 1.72;
}
.legal-copy > p { margin: 0 0 1.15em; color: #26332e; }
.legal-copy > p > strong { color: var(--ink); font-weight: 620; }

.legal-copy h2 {
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem);
  font-weight: 640;
  letter-spacing: -.028em;
  line-height: 1.2;
  margin: 2.1em 0 .7em;
  padding-top: .85em;
  border-top: 1px solid var(--line);
}
.legal-copy > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.legal-copy ul {
  list-style: none;
  margin: 0 0 1.35em;
  padding: 0;
}
.legal-copy li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .55em;
  color: #26332e;
}
/* pallino a losanga: eco del segno di quota */
.legal-copy li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .68em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.legal-copy .legal-alert {
  margin: 2.2em 0 1.2em;
  padding: 20px 24px;
  font-size: .95rem;
  line-height: 1.6;
}
.legal-copy .legal-alert p { margin: 0; }

.legal-copy .legal-date {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 2.2em;
}
.legal-copy a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   16. FAQ a fisarmonica
   ========================================================================== */

.faq-list details {
  border-bottom: 1px solid var(--line);
  border-top: 0;
}
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-dark); }

.faq-list summary h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.4;
  margin: 0;
  display: inline;
}
.faq-list summary .method-number {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  flex: none;
}

/* segno + che diventa − all'apertura */
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 27px;
  width: 13px;
  height: 1.5px;
  background: var(--ink);
}
.faq-list summary::before {
  content: "";
  position: absolute;
  right: 13.75px;
  top: 21px;
  width: 1.5px;
  height: 13px;
  background: var(--ink);
  transition: transform .24s cubic-bezier(.2,.7,.3,1), opacity .2s;
}
.faq-list details[open] summary::before { transform: rotate(90deg); opacity: 0; }

.faq-list details > p {
  margin: 0 0 24px;
  padding-right: 44px;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.68;
  max-width: 68ch;
}

/* ==========================================================================
   17. Griglie: blog, metodo, correzioni di spaziatura
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  min-height: 0;
  background: var(--white);
}
.blog-card h3 {
  font-size: 1.06rem;
  font-weight: 620;
  letter-spacing: -.022em;
  line-height: 1.32;
  margin: 16px 0 10px;
}
.blog-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 0; }
.blog-card .blog-meta { display: flex; justify-content: space-between; gap: 12px; }
.blog-card .card-link { margin-top: auto; padding-top: 22px; }

.method-list { display: flex; flex-direction: column; gap: 0; }
.method-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.method-list article:last-child { border-bottom: 1px solid var(--line); }
.method-list h3 {
  font-size: 1.16rem;
  font-weight: 620;
  letter-spacing: -.024em;
  margin: 0 0 10px;
}
.method-list p { margin: 0 0 10px; color: #26332e; max-width: 64ch; }
.method-list .included-note { color: var(--muted); }

.value-grid article h3, .clarity-grid article h3 {
  font-size: 1.08rem;
  font-weight: 620;
  letter-spacing: -.022em;
  margin: 14px 0 10px;
}
.value-grid article p, .clarity-grid article p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
  margin: 0;
}
.clarity-grid article { padding: 30px 28px; }
.value-grid article { padding: 28px 26px; min-height: 0; }

.problem-list { list-style: none; margin: 26px 0 0; padding: 0; }
.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  margin-bottom: 9px;
  font-size: .95rem;
  line-height: 1.55;
}
.problem-list svg { color: var(--verde); margin-top: 3px; }

.compact-prose { max-width: 62ch; }
.compact-prose p { margin: 0 0 1.1em; color: #26332e; }
.compact-prose h2 { margin-bottom: .6em; }

.center-action { margin-top: 44px; text-align: center; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .method-list article { grid-template-columns: 48px 1fr; gap: 16px; }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .legal-copy { font-size: 1.02rem; }
  .faq-list details > p { padding-right: 0; }
}

/* Testata opaca su mobile e dove backdrop-filter non è supportato:
   sopra l'apertura scura la versione traslucida può risultare illeggibile. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--paper); }
}
@media (max-width: 860px) {
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .brand-copy small { display: block; }
}

/* ==========================================================================
   18. Correzioni al riquadro foto di "Chi siamo"
   ========================================================================== */

/* La targhetta sporge dal riquadro: qui non si ritaglia.
   L'arrotondamento passa direttamente all'immagine. */
.about-photo, .portrait-placeholder { overflow: visible; }
.about-photo img, .portrait-placeholder img { border-radius: var(--r-md); }

.credential-card {
  right: 18px;
  bottom: 18px;
  width: 232px;
  padding: 18px 20px;
  background: var(--ink);
  border: 1px solid rgba(224, 171, 85, .3);
}
.credential-card small {
  color: var(--accent-lit);
  font-family: var(--font-label);
  font-size: 9.5px;
  letter-spacing: .16em;
}
.credential-card strong { font-size: 15px; letter-spacing: -.02em; margin: 9px 0 3px; }
.credential-card span { color: rgba(245, 242, 234, .7); }

/* L'etichetta del segnaposto era pensata per fondi scuri:
   su carta chiara serve il contrasto opposto. */
.about-photo .visual-label,
.portrait-placeholder .visual-label,
.project-image .visual-label,
.portfolio-placeholder .visual-label {
  color: var(--muted);
  top: 22px;
  bottom: auto;
  left: 24px;
}

@media (max-width: 900px) {
  .credential-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 36px);
    margin: -46px auto 0;
  }
}

/* ==========================================================================
   19. Schede contatto: etichetta sopra, valore sotto
   La regola originale disponeva i figli in riga perché prevedeva un'icona
   affiancata a un blocco di testo. Qui i figli sono etichetta e valore.
   ========================================================================== */

.contact-cards > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 15px 18px;
  border-bottom: 0;
}
.contact-cards small {
  font-family: var(--font-label);
  font-size: 9.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-cards strong {
  margin: 0;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -.018em;
  line-height: 1.35;
}
.contact-cards span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.contact-cards a { color: inherit; }
.contact-cards a strong { color: var(--accent-dark); }
.contact-cards > div > a:not(:has(strong)) {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  border-bottom: 1px solid currentColor;
  margin-top: 5px;
}

/* ==========================================================================
   20. Caso reale in fondo alle pagine servizio
   ========================================================================== */

.case-section { background: var(--paper-2); }

.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 46px);
  max-width: 880px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.case-card > h2 {
  font-size: clamp(1.32rem, 1.1rem + .9vw, 1.72rem);
  font-weight: 640;
  letter-spacing: -.03em;
  line-height: 1.18;
  margin: 0 0 26px;
}

.case-list { margin: 0; }
.case-list > div {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.case-list dt {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  padding-top: 3px;
}
.case-list dd {
  margin: 0;
  font-size: .97rem;
  line-height: 1.65;
  color: #26332e;
}

.case-note {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin: 24px 0 0;
  padding-top: 16px;
}

/* ==========================================================================
   21. Rimandi dalle FAQ alle guide
   ========================================================================== */

.guide-links-section { background: var(--paper-2); }

.faq-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.faq-guide-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
}
.faq-guide-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--sand);
}
.faq-guide-link strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.4;
}
.faq-guide-link span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-top: auto;
}

@media (max-width: 760px) {
  .faq-guide-grid { grid-template-columns: 1fr; }
  .case-list > div { grid-template-columns: 1fr; gap: 8px; }
}
