/* ==========================================================================
   MELISSA · Consulente web marketing — style.css
   Palette e font dal brand kit: Bricolage Grotesque (titoli) + Inter (testi)
   Layout full width · mobile-first · breakpoint: 480 / 768 / 1024
   ========================================================================== */

/* ---------- 1. VARIABILI ---------- */
:root {
  /* Palette brand kit */
  --teal: #2A9D8F;          /* CTA, link, accenti (sfondi e bordi) */
  --teal-text: #207974;     /* testo e icone: contrasto AA su tutti gli sfondi chiari */
  --teal-hover: #228074;    /* hover CTA (contrasto AA con testo bianco) */
  --teal-light: #7FC4BC;    /* dettagli, linee, icone secondarie */
  --foschia: #E5F3F2;       /* sfondi sezione / card */
  --sabbia: #F8F4EA;        /* sfondo neutro caldo */
  --oro: #E9C46A;           /* accento, badge — con parsimonia */
  --ink: #1B665D;           /* titoli e testo (mai come sfondo) */
  --ink-deep: #0F3F39;      /* solo per testo piccolo su sfondo oro */
  --white: #FFFFFF;

  --font-title: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 5rem);   /* margine laterale: la pagina occupa tutta la larghezza */
  --radius: 28px;
  --radius-sm: 18px;
  --header-h: 64px;
  --shadow: 0 14px 34px -16px rgba(27, 102, 93, .35);
  --line: rgba(27, 102, 93, .14);

  /* Onda decorativa (riprende la linea del logo) */
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40C240 0 480 80 720 40S1200 0 1440 40V80H0Z'/%3E%3C/svg%3E");
}
@media (min-width: 1024px) { :root { --header-h: 80px; } }

/* ---------- 2. RESET E BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
/* L'attributo HTML "hidden" deve vincere su qualsiasi display impostato nel CSS:
   senza questa riga un elemento con hidden resta visibile. */
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.1rem + 4.6vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.7vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem); line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 3. LAYOUT (full width) ---------- */
.wrap { padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--foschia { background: var(--foschia); }
.section--sabbia { background: var(--sabbia); }
.section--tight { padding-block: clamp(2rem, 5vw, 4rem); }
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { margin-inline: auto; }
.lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.32rem); line-height: 1.55; }
.prose { max-width: 62ch; }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.2fr .8fr; }
  .split--reverse > :first-child { order: 2; }
}

/* Onda decorativa sul fondo di una sezione: --wave = colore della sezione successiva */
.wave-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; pointer-events: none;
  height: clamp(28px, 5vw, 72px);
  background: var(--wave, var(--white));
  -webkit-mask: var(--wave-mask) center bottom / 100% 100% no-repeat;
          mask: var(--wave-mask) center bottom / 100% 100% no-repeat;
}

/* ---------- 4. ELEMENTI BASE: eyebrow, evidenziatore, bottoni, icone ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-title); font-weight: 700; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--oro); color: var(--ink-deep);
  padding: .4rem .95rem; border-radius: 999px; margin-bottom: 1.1rem; transform: rotate(-1.5deg);
}
.eyebrow--soft { background: var(--foschia); color: var(--ink); }
.mark {
  background: linear-gradient(transparent 60%, var(--oro) 60%, var(--oro) 92%, transparent 92%);
  padding-inline: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-title); font-weight: 700;
  font-size: 1.1667rem;                 /* 18,67px bold = "testo grande" WCAG: testo bianco su #2A9D8F ok */
  line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s, background-color .2s, box-shadow .2s, border-color .2s;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 10px 22px -10px rgba(42, 157, 143, .9); }
.btn--primary:hover { background: var(--teal-hover); transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .85); color: var(--ink); border-color: var(--teal-text); }
.btn--ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); padding: 1.1rem 2.2rem; }
.btn--sm { padding: .7rem 1.3rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.btn-row--center { justify-content: center; }
.btn .i { width: 1.1em; height: 1.1em; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }
.text-link { font-weight: 700; text-decoration-color: var(--teal-text); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--oro); }

/* Icone (maschera SVG: prendono il colore del testo) — vedi sezione ICONE in fondo */
.i {
  display: inline-block; flex: none; width: 1.5em; height: 1.5em; vertical-align: middle;
  background: currentColor;
  -webkit-mask: var(--svg) center / contain no-repeat; mask: var(--svg) center / contain no-repeat;
}
.i-bubble {
  display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--foschia); color: var(--teal-text);
}
.i-bubble .i { width: 1.6rem; height: 1.6rem; }
.i-bubble--oro { background: var(--oro); color: var(--ink-deep); }

/* ---------- 5. HEADER + MENU ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 10px 26px -18px rgba(27, 102, 93, .6); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h); padding-inline: var(--gutter);
}
.brand { display: block; flex: none; line-height: 0; }
/* Logo: contenuto sul mobile, più grande su desktop */
.brand img { height: 34px; width: auto; }
@media (min-width: 480px) { .brand img { height: 38px; } }
@media (min-width: 1024px) { .brand img { height: 48px; } }

.nav-toggle {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; cursor: pointer;
  border-radius: 14px; background: var(--foschia); color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 3px; border-radius: 3px; background: currentColor; transition: transform .25s, background-color .25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: pannello a tutta pagina */
.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--white); padding: 1.25rem var(--gutter) 2.5rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-list, .subnav { list-style: none; margin: 0; padding: 0; }
.nav-list > li > a {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-title); font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em;
  text-decoration: none; padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.nav-list > li > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--teal-text); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.subnav { padding: .25rem 0 .75rem 1rem; display: grid; gap: .15rem; }
.subnav a { display: flex; align-items: center; gap: .85rem; padding: .55rem 0; text-decoration: none; font-weight: 600; }
.subnav a[aria-current="page"] strong { text-decoration: underline; text-decoration-color: var(--teal-text); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.subnav .sub-n {
  display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--foschia); color: var(--ink); font-family: var(--font-title); font-weight: 800; font-size: .8rem;
}
.subnav strong { display: block; font-family: var(--font-title); font-size: 1.1rem; line-height: 1.2; }
.subnav small { display: none; font-size: .85rem; font-weight: 400; }
.nav-cta { margin-top: 1.5rem; }
.nav-cta .btn { width: 100%; }

/* Desktop: menu orizzontale + sottomenu al passaggio del mouse */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; inset: auto; z-index: auto; display: flex; align-items: center; gap: 1.75rem;
    padding: 0; overflow: visible; background: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav-list { display: flex; align-items: center; gap: .25rem; }
  .nav-list > li > a { font-family: var(--font-text); font-weight: 600; font-size: 1.02rem; padding: .6rem 1.05rem; border: 0; border-radius: 999px; }
  .nav-list > li > a:hover, .nav-list > li:focus-within > a, .nav-list > li > a[aria-current="page"] { background: var(--foschia); text-decoration: none; }
  .nav-cta { margin: 0; }
  .nav-cta .btn { width: auto; }

  .has-sub { position: relative; }
  .has-sub > a::after {
    content: ""; width: 1em; height: 1em; background: currentColor; transition: transform .2s;
    -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
  }
  .has-sub:hover > a::after, .has-sub:focus-within > a::after { transform: rotate(180deg); }
  .subnav {
    position: absolute; top: calc(100% + 10px); left: 50%; min-width: 22.5rem; padding: .6rem; gap: .1rem;
    background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 48px -20px rgba(27, 102, 93, .5);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* ponte: il menu non si chiude spostando il mouse */
  .has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .subnav a { padding: .75rem .9rem; border-radius: 16px; transition: background-color .15s; }
  .subnav a:hover, .subnav a:focus-visible { background: var(--foschia); }
  .subnav small { display: block; margin-top: .1rem; }
  .subnav .sub-n { width: 2.4rem; height: 2.4rem; font-size: .95rem; background: var(--oro); color: var(--ink-deep); }
}

/* ---------- 6. HERO (foto personali di sfondo con velo chiaro) ---------- */
.hero, .page-hero {
  position: relative; isolation: isolate; background-color: var(--sabbia);
  background-image:
    linear-gradient(180deg, rgba(248, 244, 234, .95) 0%, rgba(248, 244, 234, .84) 100%),
    var(--photo);
  background-size: cover, cover;
  background-position: center, var(--pos, center);
}
@media (min-width: 768px) {
  .hero, .page-hero {
    background-image:
      linear-gradient(90deg, rgba(248, 244, 234, .98) 0%, rgba(248, 244, 234, .96) 52%, rgba(248, 244, 234, .45) 78%, rgba(248, 244, 234, .05) 100%),
      var(--photo);
  }
}
.hero { padding-block: clamp(3.25rem, 8vw, 7.5rem) clamp(6rem, 12vw, 11rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 40rem; }
.hero__chips { display: none; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .hero__chips { display: block; position: relative; min-height: 24rem; }
}
.chip {
  position: absolute; display: flex; align-items: center; gap: .8rem; white-space: nowrap;
  background: #fff; border-radius: 999px; padding: .6rem 1.4rem .6rem .6rem; box-shadow: var(--shadow);
  font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
}
.chip .i-bubble { width: 2.75rem; height: 2.75rem; }
.chip--1 { top: 4%; left: 2%; transform: rotate(-3deg); }
.chip--2 { top: 40%; right: 0; transform: rotate(2.5deg); }
.chip--3 { bottom: 6%; left: 8%; transform: rotate(-1.5deg); }

.page-hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4.5rem, 9vw, 8rem); }
.page-hero h1 { font-size: clamp(2.1rem, 1.1rem + 4.2vw, 4.4rem); max-width: 20ch; }
.page-hero .lead { max-width: 44rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: .92rem; font-weight: 600; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .88; }
.breadcrumb a { text-decoration-color: var(--teal-text); text-underline-offset: 3px; }

/* ---------- 7. STATISTICHE + PARTNER ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-top: calc(-1 * clamp(3rem, 7vw, 6rem)); position: relative; z-index: 2;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.stats--2 { max-width: 46rem; margin-inline: auto; }
@media (min-width: 768px) { .stats--2 { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1; color: var(--teal-text); }
.stat span { display: block; margin-top: .4rem; font-weight: 600; line-height: 1.3; }

.partners { text-align: center; padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.partners__title { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); margin-bottom: 1.25rem; }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; }
.partners li {
  font-family: var(--font-title); font-weight: 800; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem);
  padding: .65rem 1.5rem; border-radius: 999px; background: var(--sabbia); filter: grayscale(1); opacity: .88;
}

/* ---------- 8. CARD E BLOCCHI ---------- */
.card { background: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2.25rem); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3 { margin-top: .9rem; }
.card p:last-child { margin-bottom: 0; }

/* Pain point */
.pain-list { display: grid; gap: 1rem; }
.pain { display: flex; gap: 1.1rem; background: #fff; border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; border-left: 6px solid var(--teal); box-shadow: var(--shadow); }
.pain h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.pain p { margin: 0; }
.solution {
  position: relative; background: #fff; border: 3px solid var(--teal); border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.75rem); box-shadow: var(--shadow);
}
.solution .eyebrow { position: absolute; top: -1rem; left: 1.5rem; margin: 0; }
.solution h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-top: .5rem; }

/* Come lavoro: timeline */
.steps { --ring: var(--white); display: grid; gap: 1.25rem; counter-reset: step; position: relative; }
.section--foschia .steps { --ring: var(--foschia); }
.section--sabbia .steps { --ring: var(--sabbia); }
@media (min-width: 900px) {
  .steps--3 { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .steps--3::before { content: ""; position: absolute; top: 1.85rem; left: 3.7rem; right: calc(33.333% - 1rem); border-top: 3px dashed var(--teal-light); }
}
.step { position: relative; }
.step__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 3.7rem; height: 3.7rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 0 0 .55rem var(--ring);
}
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; }

/* Servizi: card cliccabili */
.service-card {
  position: relative; display: flex; flex-direction: column; gap: .6rem; text-decoration: none;
  background: #fff; border: 2px solid transparent; border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.25rem); box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
.service-card:hover, .service-card:focus-visible { transform: translateY(-6px) rotate(-.6deg); border-color: var(--teal-text); }
.service-card__n { font-family: var(--font-title); font-weight: 800; font-size: 3.6rem; line-height: 1; color: var(--teal); }
.service-card h3 { margin: 0; }
.service-card p { margin: 0; flex: 1; }
.service-card .more { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--teal-text); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.service-card .more .i { width: 1.2em; height: 1.2em; transition: transform .2s; }
.service-card:hover .more .i { transform: translateX(5px); }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.start-here {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--oro); color: var(--ink-deep); border-radius: var(--radius); padding: 1.25rem clamp(1.25rem, 3vw, 2.25rem); margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.start-here p { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); line-height: 1.2; }
.start-here a { color: var(--ink-deep); font-weight: 800; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.start-here .btn { background: var(--teal); }

/* Grandi aziende / partnership Moonify */
.partnership { display: grid; gap: 1.25rem; justify-items: stretch; position: relative; }
.pcard { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pcard__role { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .88; margin-bottom: .2rem; }
.pcard strong, .pcard h3 { display: block; font-family: var(--font-title); font-weight: 800; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); line-height: 1; margin: 0 0 .5rem; }
.pcard p { margin: 0; }
.pcard--me { border: 3px solid var(--teal); }
.plus { justify-self: center; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--oro); color: var(--ink-deep); font-family: var(--font-title); font-weight: 800; font-size: 1.8rem; line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1.05rem; font-weight: 600; font-size: .98rem; }
.section--foschia .tags li, .section--sabbia .tags li { background: #fff; }
.tags--soft li { background: var(--foschia); border-color: transparent; }

/* Due colonne: quando basto io / quando serve la squadra */
.contrast { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .contrast { grid-template-columns: 1fr 1fr; } }
.contrast__col { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contrast__col--team { border: 3px solid var(--teal); }
.contrast__col h3 { margin-top: .9rem; }

/* CTA banner con foto personale: velo forte al centro (dove c'è il testo), foto visibile ai lati */
.cta-banner {
  position: relative; isolation: isolate; text-align: center; padding-block: clamp(4rem, 9vw, 8rem);
  background-color: var(--foschia);
  background-image: linear-gradient(rgba(229, 243, 242, .88), rgba(229, 243, 242, .88)), var(--photo);
  background-size: cover; background-position: center, var(--pos, center);
}
@media (min-width: 768px) {
  .cta-banner {
    background-image: linear-gradient(90deg, rgba(229, 243, 242, .25) 0%, rgba(229, 243, 242, .9) 28%, rgba(229, 243, 242, .9) 72%, rgba(229, 243, 242, .25) 100%), var(--photo);
  }
}
.cta-banner h2 { max-width: 22ch; margin-inline: auto; }
.cta-banner .lead { max-width: 40rem; margin-inline: auto; }
.cta-banner--final { background-color: var(--sabbia); background-image: linear-gradient(rgba(248, 244, 234, .88), rgba(248, 244, 234, .88)), var(--photo); }
@media (min-width: 768px) {
  .cta-banner--final {
    background-image: linear-gradient(90deg, rgba(248, 244, 234, .2) 0%, rgba(248, 244, 234, .92) 28%, rgba(248, 244, 234, .92) 72%, rgba(248, 244, 234, .2) 100%), var(--photo);
  }
}
.cta-banner--final h2 { font-size: clamp(2.1rem, 1.2rem + 4vw, 4.6rem); }

/* Confronto agenzia / me */
.compare { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.75rem); background: #fff; border: 2px dashed rgba(27, 102, 93, .3); }
.compare__col--me { border: 3px solid var(--teal); box-shadow: var(--shadow); }
.compare h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 1.25rem; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.compare li { display: flex; gap: .8rem; align-items: flex-start; }
.compare li .i { margin-top: .12em; }
.compare .no .i { color: rgba(27, 102, 93, .55); }
.compare .yes .i { color: var(--teal-text); }

/* Liste con check */
.checks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; }
.checks .i { color: #fff; background-color: var(--teal-text); border-radius: 50%; padding: .28em; width: 1.7em; height: 1.7em; margin-top: -.05em; -webkit-mask: none; mask: none; position: relative; }
.checks .i::before { content: ""; position: absolute; inset: .28em; background: #fff; -webkit-mask: var(--svg) center / contain no-repeat; mask: var(--svg) center / contain no-repeat; }

/* Testimonianze */
.quote { margin: 0; position: relative; display: flex; flex-direction: column; gap: 1rem; }
.quote::before { content: "\201C"; font-family: var(--font-title); font-weight: 800; font-size: 5rem; line-height: .6; color: var(--teal-text); height: 2rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote figcaption { margin-top: auto; font-weight: 700; }
.quote figcaption small { display: block; font-weight: 400; font-size: .9rem; }

/* Foto personali incorniciate */
.photo-frame { position: relative; margin: 0; }
.photo-frame img { width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.photo-frame--arch img { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }
.photo-frame--round img { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 8px solid #fff; transform: rotate(1.5deg); }
.sticker {
  position: absolute; display: grid; place-items: center; text-align: center; width: 7.2rem; height: 7.2rem; padding: .6rem; border-radius: 50%;
  background: var(--oro); color: var(--ink-deep); font-family: var(--font-title); font-weight: 800; font-size: 1.02rem; line-height: 1.1;
  transform: rotate(-10deg); box-shadow: var(--shadow);
}
.sticker--tr { top: -1rem; right: -.25rem; }
.sticker--bl { bottom: -1rem; left: -.25rem; }

/* Servizi (pagina elenco): righe alternate */
.feature { display: grid; gap: 2rem; align-items: center; padding-block: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
  .feature:nth-of-type(even) > :first-child { order: 2; }
}
.feature__n { font-family: var(--font-title); font-weight: 800; font-size: 1rem; letter-spacing: .08em; }
.feature h2 { margin-top: .3rem; }

/* Icone card (4 elementi) */
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

/* ---------- 9. FAQ (accordion nativo <details>, senza JS) ---------- */
.faq { display: grid; gap: .9rem; max-width: 58rem; }
.faq--center { margin-inline: auto; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
.faq details[open] { border-color: var(--teal-text); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.1rem 1.35rem; font-family: var(--font-title); font-weight: 700; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); line-height: 1.25;
}
.faq summary h3 {
  font: inherit;
  margin: 0;
  color: inherit;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--foschia) var(--plus) center / 1rem no-repeat; transition: transform .25s, background-color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--oro); }
.faq .answer { padding: 0 1.35rem 1.3rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- 10. CONTATTI + FORM ---------- */
/* Contatti: due colonne (prenotazione + modulo) */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
/* Calendly: embed inline della prenotazione call */
.calendly-embed {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: var(--radius-sm);
  position: relative;
}
/* Indicatore mostrato mentre il calendario si apre (copre l'area, nessun salto di layout) */
.calendly-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .9rem;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-sm);
}
.calendly-loading p { margin: 0; font-weight: 600; }
/* ATTENZIONE — altezza del calendario.
   Calendly, per gli embed in linea, NON regola da sé l'altezza: riscrive lo
   stile del contenitore togliendo "height" e mettendo min-height: 0.
   Se non la fissiamo qui, il calendario collassa a 150px (verificato).
   Quindi l'altezza va impostata qui. Valori: 700px su desktop (il valore
   suggerito da Calendly), più alto su mobile perché il layout si incolonna. */
.calendly-inline-widget {
  width: 100% !important;
  min-width: 0 !important;
  height: 700px !important;
}
.calendly-inline-widget iframe {
  display: block;
  width: 100%;
  border: 0;
}
@media (max-width: 768px) {
  .calendly-inline-widget { height: 900px !important; }
}
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: .9rem 1.1rem; border: 2px solid rgba(27, 102, 93, .35); border-radius: 16px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--oro); outline-offset: 2px; border-color: var(--teal-text); }
.check-field { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.check-field input { margin-top: .3rem; width: 1.2rem; height: 1.2rem; accent-color: var(--teal-text); }

/* ---------- 11. FOOTER ---------- */
.site-footer { background: var(--sabbia); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 30ch; }
.footer-mail { margin-top: .6rem; font-weight: 700; }
.footer-mail a { text-decoration-color: var(--teal-text); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.footer-mail a:hover { text-decoration-color: var(--oro); text-decoration-thickness: 3px; }
.site-footer h2 { font-size: 1.1rem; letter-spacing: .02em; margin-bottom: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { text-decoration-color: var(--teal-text); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.footer-links a:hover { text-decoration-color: var(--oro); text-decoration-thickness: 3px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .92rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
/* Pulsante "Preferenze cookie": si presenta come un link */
.link-btn {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--teal-text);
  text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.link-btn:hover { text-decoration-color: var(--oro); text-decoration-thickness: 3px; }

/* ---------- 12. RITOCCHI RESPONSIVE ---------- */
@media (max-width: 768px) {
  .chip { font-size: 1rem; }
  .sticker { width: 6rem; height: 6rem; font-size: .9rem; }
  .hero h1 { max-width: none; }
  .pain { padding: 1.1rem 1.15rem; gap: .85rem; }
  .i-bubble { width: 2.9rem; height: 2.9rem; }
}
@media (max-width: 480px) {
  .stat { padding: 1rem 1.1rem; }
  .solution .eyebrow { left: 1rem; }
  .start-here .btn { width: 100%; }
}

/* ---------- 13. ICONE (generate: maschere SVG inline, nessuna richiesta di rete) ---------- */
:root { --chev: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E"); --plus: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%231B665D'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E"); }
.i-check { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3C/svg%3E"); }
.i-cross { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M18%206%206%2018M6%206l12%2012'/%3E%3C/svg%3E"); }
.i-arrow { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2012h14M13%206l6%206-6%206'/%3E%3C/svg%3E"); }
.i-search { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cpath%20d='m20%2020-3.5-3.5'/%3E%3C/svg%3E"); }
.i-sparkles { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M11%203l2%205.5L18.5%2010.5%2013%2012.5%2011%2018l-2-5.5L3.5%2010.5%209%208.5z'/%3E%3Cpath%20d='M19%2015.5l.8%202%202%20.8-2%20.8-.8%202-.8-2-2-.8%202-.8z'/%3E%3C/svg%3E"); }
.i-mail { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='5'%20width='18'%20height='14'%20rx='3'/%3E%3Cpath%20d='m3.5%208%208.5%206%208.5-6'/%3E%3C/svg%3E"); }
.i-compass { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='m15.5%208.5-2%205-5%202%202-5z'/%3E%3C/svg%3E"); }
.i-pen { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%2020l1-4L16.5%204.5a2.1%202.1%200%200%201%203%203L8%2019z'/%3E%3Cpath%20d='m14.5%206.5%203%203'/%3E%3C/svg%3E"); }
.i-chart { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2020V11M12%2020V4M19%2020v-7M2%2020h20'/%3E%3C/svg%3E"); }
.i-users { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='9'%20cy='8'%20r='3.5'/%3E%3Cpath%20d='M2.5%2020c.5-3.5%203-5.5%206.5-5.5s6%202%206.5%205.5'/%3E%3Ccircle%20cx='17.5'%20cy='9'%20r='2.5'/%3E%3Cpath%20d='M18%2014.5c2%20.3%203.3%202%203.5%204.5'/%3E%3C/svg%3E"); }
.i-target { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='5'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='1'/%3E%3C/svg%3E"); }
.i-globe { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='M3%2012h18M12%203c3%203.5%203%2014.5%200%2018M12%203c-3%203.5-3%2014.5%200%2018'/%3E%3C/svg%3E"); }
.i-calendar { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='5'%20width='18'%20height='16'%20rx='3'/%3E%3Cpath%20d='M3%2010h18M8%203v4M16%203v4'/%3E%3C/svg%3E"); }
.i-doc { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%203h7l5%205v13H7z'/%3E%3Cpath%20d='M14%203v5h5M10%2013h6M10%2017h6'/%3E%3C/svg%3E"); }
.i-code { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m8%208-4%204%204%204M16%208l4%204-4%204M13.5%205l-3%2014'/%3E%3C/svg%3E"); }
.i-send { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%203%2010%2014M21%203l-7%2018-4-7-7-4z'/%3E%3C/svg%3E"); }
.i-lock { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4'%20y='11'%20width='16'%20height='10'%20rx='2'/%3E%3Cpath%20d='M8%2011V8a4%204%200%200%201%208%200v3'/%3E%3C/svg%3E"); }
.i-pin { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s7-6%207-11a7%207%200%201%200-14%200c0%205%207%2011%207%2011z'/%3E%3Ccircle%20cx='12'%20cy='10'%20r='2.5'/%3E%3C/svg%3E"); }
.i-chevron { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E"); }
.i-plus { --svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E"); }

/* ---------- 14. SEZIONE NEWSLETTER SUBSTACK ---------- */
.section--newsletter {
  background: var(--foschia);
  position: relative;
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.newsletter-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
  max-width: 46rem;
  margin-inline: auto;
}
.newsletter-card h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  margin-bottom: .4em;
}
.newsletter-card .lead {
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
}
.newsletter-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  min-height: 150px;
}
.newsletter-embed iframe {
  max-width: 100%;
  width: 480px;
  height: 150px;
  border: 0;
  background: transparent;
  display: block;
}

/* ---------- 15. CASI STUDIO E GRAFICI ---------- */
.case-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .92rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(27, 102, 93, .08);
}
.case-tag strong {
  color: var(--teal-text);
}
.case-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(27, 102, 93, .4);
}
.case-card__img {
  background: #f8fafc;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
}
.case-card__img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(27, 102, 93, .12);
  display: block;
}
.case-card__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-card__body h3 {
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem);
  margin-bottom: .6rem;
  color: var(--ink);
}
.case-card__body p {
  color: var(--ink);
  opacity: .9;
  line-height: 1.6;
}
.badge-evidence {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--oro);
  color: var(--ink-deep);
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: .8rem;
  align-self: flex-start;
}

/* ---------- 16. SEZIONE BLOG ---------- */.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0;
}
.blog-filter {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .92rem;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  background: var(--foschia);
  color: var(--ink);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.blog-filter:hover,
.blog-filter[aria-current="true"],
.blog-filter.is-active {
  background: var(--teal-text);
  color: #fff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(27, 102, 93, .38);
  border-color: var(--teal-text);
}
.blog-card__media {
  margin: 0;
  position: relative;
  background: var(--foschia);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card__media img {
  transform: scale(1.03);
}
.blog-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--oro);
  color: var(--ink-deep);
  z-index: 2;
}
.blog-card__body {
  padding: clamp(1.5rem, 2.8vw, 2.1rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .75rem;
  opacity: .88;
}
.blog-card__title {
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.55rem);
  line-height: 1.2;
  margin: 0 0 .65rem;
}
.blog-card__title a {
  text-decoration: none;
  color: inherit;
}
.blog-card__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--teal-text);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.blog-card__excerpt {
  margin: 0 0 1.4rem;
  flex: 1;
}
.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .95rem;
  color: var(--teal-text);
  text-decoration: none;
}
.blog-card__more:hover {
  text-decoration: underline;
}

/* ---------- 17. CONSENSO COOKIE — segnaposto per i contenuti di terze parti ----------
   Finché il visitatore non accetta i cookie funzionali, al posto di Calendly e
   della newsletter viene mostrato questo riquadro (vedi script.js, sezione 6). */
.consent-placeholder {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .9rem;
  text-align: center;
  background: var(--foschia);
  border: 2px dashed var(--teal-light);
  border-radius: var(--radius-sm);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 11rem;
  width: 100%;
}
.consent-placeholder p {
  margin: 0;
  max-width: 42ch;
  font-size: .97rem;
  line-height: 1.55;
}
.consent-placeholder .btn { margin-top: .25rem; }
.consent-placeholder__host { font-family: var(--font-title); font-weight: 800; }
@media (max-width: 480px) {
  .consent-placeholder {
    padding: 1.25rem 1rem;
    min-height: 9rem;
    gap: .75rem;
  }
  .consent-placeholder .btn {
    font-size: 1rem;
    padding: .75rem 1.1rem;
    white-space: normal;
    line-height: 1.2;
  }
}
/* Stato di caricamento: evita lo spazio vuoto mentre Calendly si apre */
.consent-placeholder--loading {
  border-style: solid;
  border-color: var(--line);
  background: #fff;
}
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--teal-light);
  border-top-color: var(--teal-text);
  border-radius: 50%;
  animation: consent-spin .8s linear infinite;
}
@keyframes consent-spin { to { transform: rotate(360deg); } }

/* ---------- 18. TABELLA DEI COOKIE (Cookie Policy) ---------- */
.cookie-table-wrap { overflow-x: auto; margin: 1.25rem 0 .5rem; }
.cookie-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: .95rem;
}
.cookie-table caption {
  text-align: left;
  font-family: var(--font-title);
  font-weight: 700;
  padding-bottom: .75rem;
  color: var(--ink);
}
.cookie-table th, .cookie-table td {
  text-align: left;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cookie-table thead th {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .02em;
  background: var(--foschia);
  color: var(--ink);
}
.cookie-table tbody tr:nth-child(even) { background: rgba(229, 243, 242, .4); }
.cookie-table code {
  font-size: .88em;
  background: var(--sabbia);
  padding: .12em .4em;
  border-radius: 6px;
  white-space: nowrap;
}


