/* ==========================================================================
   Dott.ssa Giulia Ferretti — style.css
   Design system editoriale e caldo per una psicologa.
   Carta crema, salvia, terracotta — Fraunces + Caveat + Inter.
   Struttura completamente diversa dalle altre demo: niente stats band,
   niente righe numerate, niente split di colonne nel footer.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f1e8;
  --paper-deep: #ece2d2;
  --card: #fffdf8;
  --ink: #2f2a24;
  --ink-soft: #6f6659;
  --line: rgba(47, 42, 36, 0.13);
  --pine: #3e5c4b;
  --pine-deep: #2e4639;
  --pine-soft: #dbe5dc;
  --clay: #c96f4a;
  --clay-deep: #ae5a38;
  --clay-soft: #f2dcd0;
  --sand: #e6d7c0;
  --danger: #b3452f;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 44px rgba(47, 42, 36, 0.12);
  --shadow-card: 0 10px 30px rgba(47, 42, 36, 0.08);
  --font-serif: "Fraunces", Georgia, serif;
  --font-hand: "Caveat", cursive;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--clay-soft); color: var(--ink); }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 110px) 0; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
}
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .section-sub { margin-inline: auto; }

/* Eyebrow chip */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--pine-soft);
  border: 1px solid rgba(62, 92, 75, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(201, 111, 74, 0.22);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-clay { background: var(--clay); color: var(--white); box-shadow: 0 10px 24px rgba(201, 111, 74, 0.35); }
.btn-clay:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 111, 74, 0.42); }

.btn-ghost { background: transparent; color: var(--pine); border: 1.5px solid rgba(62, 92, 75, 0.35); }
.btn-ghost:hover { border-color: var(--pine); background: rgba(62, 92, 75, 0.07); transform: translateY(-2px); }

.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn:focus-visible, .lang-toggle:focus-visible, .nav-toggle:focus-visible,
.faq-q:focus-visible, .carousel-btn:focus-visible, .carousel-dot:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--pine-deep);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  transition: top 0.25s;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   HEADER — minimale, trasparente, diventa solido allo scroll
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 241, 232, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(47, 42, 36, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-name em { font-style: italic; color: var(--clay); }
.brand-tag {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.primary-nav a:hover { color: var(--ink); background: rgba(62, 92, 75, 0.08); }
.primary-nav a.is-active { color: var(--pine); background: var(--pine-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.lang-toggle:hover { background: var(--pine); border-color: var(--pine); color: var(--white); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--line); }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 110px 8% 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu nav a::after { content: "→"; color: var(--clay); }
.mobile-menu .btn { margin-top: 26px; }
.mobile-lang { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--ink-soft); }
.mobile-lang button {
  font-weight: 700;
  color: var(--pine);
  border: 1.5px solid rgba(62, 92, 75, 0.35);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ==========================================================================
   HERO — editoriale con ritratto ad arco
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero-bg-arc {
  position: absolute;
  top: -140px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(62, 92, 75, 0.14), rgba(62, 92, 75, 0));
  pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -14px) scale(1.05); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-hello {
  font-family: var(--font-hand);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  color: var(--clay-deep);
  margin-bottom: 6px;
  line-height: 1.1;
}
.hero-hello em { font-style: normal; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--clay); display: block; }

.hero-sub {
  font-size: 1.07rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); }
.trust-star { color: var(--clay); font-size: 0.85rem; }

/* Ritratto ad arco (porta aperta) */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 10px 20px;
}

.hero-arch {
  position: relative;
  width: min(400px, 88%);
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 24px 24px / 30% 30% 24px 24px;
  overflow: hidden;
  border: 10px solid var(--card);
  box-shadow: var(--shadow-soft);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch.no-img { border-radius: var(--radius-lg); }

/* Post-it */
.tape-note {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transform: rotate(-4deg);
  line-height: 1.2;
}
.tape-note i {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 54px;
  height: 18px;
  background: rgba(201, 111, 74, 0.28);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.tape-note--1 { top: 8px; right: 2%; transform: rotate(5deg); }
.tape-note--1 i { background: rgba(201, 111, 74, 0.3); }
.tape-note--2 { bottom: 24%; left: 0; transform: rotate(-6deg); animation: floaty 6s ease-in-out infinite; }
.tape-note--2 i { background: rgba(62, 92, 75, 0.28); }
.tape-note--3 { bottom: 6%; right: 4%; transform: rotate(3deg); }
.tape-note--3 i { background: rgba(230, 215, 192, 0.7); }

@keyframes floaty {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-9px); }
}

/* Badge rotante */
.rotating-badge {
  position: absolute;
  bottom: -6px;
  left: 2%;
  z-index: 2;
  animation: floaty 7s ease-in-out infinite;
}
.rotating-badge svg { animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-text {
  font-size: 8.2px;
  font-weight: 700;
  letter-spacing: 1.6px;
  fill: var(--pine);
  text-transform: uppercase;
}
.badge-center {
  font-size: 15px;
  fill: var(--clay);
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  background: var(--pine);
  color: var(--paper);
  padding: 16px 0;
  overflow: hidden;
  transform: rotate(-0.6deg) scale(1.02);
  margin: -6px 0 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-set { display: flex; align-items: center; }
.marquee-word {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  padding: 0 20px;
  white-space: nowrap;
}
.marquee-star { color: var(--clay); font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   METODO — 3 passi
   ========================================================================== */
.metodo { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.steps-row::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed rgba(201, 111, 74, 0.4);
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.step-num {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 4px;
}
.step-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pine-soft);
  color: var(--pine);
  margin-bottom: 16px;
}
.step-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.step-card p { color: var(--ink-soft); font-size: 0.95rem; }

.method-cta { text-align: center; margin-top: 42px; }

/* ==========================================================================
   PERCORSI — card grid
   ========================================================================== */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.path-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: rgba(201, 111, 74, 0.4); }

.path-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.path-card-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--pine-soft);
  border-radius: 16px;
}
.path-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-deep);
  background: var(--clay-soft);
  border-radius: 999px;
  padding: 5px 12px;
}
.path-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.25;
  margin-bottom: 10px;
}
.path-card-desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }
.path-card-for {
  background: var(--pine-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--ink);
}
.path-card-for strong { color: var(--pine); }
.path-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.path-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pine);
  border: 1px solid rgba(62, 92, 75, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
}
.path-cta {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  color: var(--pine);
  border-bottom: 2px solid var(--pine);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.path-cta:hover { color: var(--clay-deep); border-color: var(--clay-deep); }

.section-footnote { margin-top: 34px; font-size: 0.98rem; color: var(--ink-soft); }
.section-footnote a { font-weight: 700; color: var(--pine); border-bottom: 2px solid var(--pine); }
.section-footnote a:hover { color: var(--clay-deep); border-color: var(--clay-deep); }

/* ==========================================================================
   TERAPIA ONLINE
   ========================================================================== */
.online { background: var(--paper); }

.online-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.online-benefits { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 34px; }
.online-benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 8px 4px;
}
.benefit-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

/* Mockup videochiamata */
.video-card {
  background: #222d27;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 8px solid var(--card);
}
.video-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.video-dots { display: flex; gap: 6px; }
.video-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d9a441; }
.video-dots i:nth-child(1) { background: #e07b6a; }
.video-dots i:nth-child(2) { background: #e3c26a; }
.video-dots i:nth-child(3) { background: #7fbf84; }
.video-url {
  flex: 1;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffb4a4;
  background: rgba(224, 123, 106, 0.15);
  padding: 5px 10px;
  border-radius: 999px;
}
.video-live i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff6b5e;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.video-screen { position: relative; aspect-ratio: 16 / 10; }
.video-screen > img { width: 100%; height: 100%; object-fit: cover; }
.video-timer {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  color: var(--white);
  background: rgba(20, 26, 22, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 12px;
}
.video-self {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30%;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 3;
}
.video-self img { width: 100%; height: 100%; object-fit: cover; }

.video-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.video-ctl {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, transform 0.2s;
}
.video-ctl:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.video-ctl--end { background: #d9503e; color: var(--white); }
.video-ctl--end:hover { background: #c03f2e; }
.video-call-label { flex: 1; text-align: center; }
.video-call-label strong { display: block; color: var(--white); font-family: var(--font-serif); font-weight: 500; font-size: 0.95rem; }
.video-call-label span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); }

.online-note { margin-top: 18px; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; text-align: center; }

/* ==========================================================================
   CHI SONO
   ========================================================================== */
.about { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); }

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.about-media { position: relative; padding: 0 0 30px 0; display: flex; justify-content: center; }
.about-arch {
  width: min(380px, 90%);
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 24px 24px / 30% 30% 24px 24px;
  overflow: hidden;
  border: 10px solid var(--card);
  box-shadow: var(--shadow-soft);
}
.about-arch img { width: 100%; height: 100%; object-fit: cover; }
.about-arch.no-img { border-radius: var(--radius-lg); }

.about-img-small {
  position: absolute;
  bottom: 0;
  left: 4%;
  width: 42%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 8px solid var(--card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.about-img-small img { width: 100%; height: 100%; object-fit: cover; }

.about-badge {
  position: absolute;
  top: 22px;
  right: 4%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  box-shadow: var(--shadow-card);
  text-align: center;
  max-width: 190px;
}
.about-badge-label { display: block; font-size: 0.76rem; line-height: 1.4; color: var(--ink-soft); }
.about-badge-val {
  display: block;
  margin-top: 4px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pine);
}

.about-text .section-title { margin-bottom: 1.1rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1rem; }

.about-credentials { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.about-credentials li { display: flex; align-items: center; gap: 12px; font-size: 0.96rem; font-weight: 500; }
.about-credentials .check { width: 26px; height: 26px; }

.check {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pine);
  background: var(--pine-soft);
  border-radius: 50%;
}

.about-quote {
  border-left: 4px solid var(--clay);
  padding: 4px 0 4px 22px;
  margin: 26px 0;
}
.about-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.about-quote cite { font-size: 0.85rem; font-style: normal; color: var(--clay-deep); font-weight: 600; }

/* Statistiche inline (non a box) */
.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px dashed rgba(47, 42, 36, 0.2);
}
.stat-value {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--clay-deep);
  line-height: 1.1;
}
.stat-suffix { font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; color: var(--clay-deep); }
.stat-label { display: block; font-size: 0.76rem; color: var(--ink-soft); margin-top: 2px; }

/* ==========================================================================
   STORIE — carousel
   ========================================================================== */
.storie { background: var(--paper); }

.carousel {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding: 0 8px;
}
.carousel-viewport {
  overflow: hidden;
  display: flex;
  transition: transform 0.6s var(--ease);
}
.carousel-slide {
  flex: 0 0 100%;
  text-align: center;
  padding: 8px 16px 12px;
}
.carousel-mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 4.6rem;
  line-height: 0.6;
  color: var(--clay);
  margin-bottom: 22px;
}
.carousel-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 26px;
}
.carousel-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.carousel-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--pine-soft);
  color: var(--pine);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.carousel-author strong { display: block; text-align: left; font-size: 0.95rem; }
.carousel-author small { color: var(--ink-soft); font-size: 0.8rem; display: block; text-align: left; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}
.carousel-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--pine);
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.carousel-btn:hover { background: var(--pine); border-color: var(--pine); color: var(--white); transform: translateY(-2px); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(47, 42, 36, 0.2);
  transition: width 0.3s var(--ease), background 0.3s;
}
.carousel-dot.is-active { width: 26px; background: var(--clay); }

/* ==========================================================================
   RISORSE / ARTICOLI
   ========================================================================== */
.risorse { background: var(--paper-deep); }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.article-media { aspect-ratio: 16 / 10; overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.article-card:hover .article-media img { transform: scale(1.06); }
.article-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.article-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--pine-soft);
  border-radius: 999px;
  padding: 4px 12px;
}
.article-meta time { font-size: 0.78rem; color: var(--ink-soft); }
.article-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-excerpt { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.article-more {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clay-deep);
}
.article-more:hover { text-decoration: underline; }

/* ==========================================================================
   FAQ — centrata
   ========================================================================== */
.faq { background: var(--paper); }
.faq-wrap { max-width: 780px; }

.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.faq-item.is-open { box-shadow: var(--shadow-card); border-color: rgba(62, 92, 75, 0.35); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 22px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1.35;
}
.faq-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--pine-soft);
  color: var(--pine);
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s;
}
.faq-item.is-open .faq-icon { transform: rotate(135deg); background: var(--pine); color: var(--white); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a p { padding: 0 22px 22px; color: var(--ink-soft); font-size: 0.96rem; max-width: 60ch; }

.faq-foot { text-align: center; margin-top: 30px; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-deep) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 72px);
  text-align: center;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 111, 74, 0.35), transparent 70%);
  top: -120px; right: -80px;
}
.cta-inner::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 241, 232, 0.12), transparent 70%);
  bottom: -130px; left: -60px;
}
.cta-script {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd9c4;
  margin-bottom: 14px;
}
.cta-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.cta-sub { max-width: 56ch; margin: 0 auto 30px; color: rgba(246, 241, 232, 0.8); position: relative; }
.cta-inner .btn { position: relative; }

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.contact { background: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-card);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #a89f8f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pine);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(62, 92, 75, 0.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e5c4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
  cursor: pointer;
}

.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(179, 69, 47, 0.12);
}
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--danger);
}
.field.is-invalid .field-error { display: block; }
.privacy-error { display: none; }
.privacy-error.is-shown { display: block; margin: -8px 0 14px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 22px;
}
.checkbox input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--pine);
  flex-shrink: 0;
  cursor: pointer;
}

.btn .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }

.form-note { margin-top: 18px; font-size: 0.8rem; color: var(--ink-soft); font-style: italic; text-align: center; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease);
}
.info-card:hover { transform: translateY(-3px); }
.info-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--pine);
}
.info-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }
.info-card a { color: var(--clay-deep); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.map-wrap { margin-top: 4px; }
.map-wrap iframe {
  width: 100%;
  height: 170px;
  border-radius: var(--radius-sm);
  border: 0;
  filter: sepia(0.25) saturate(0.85);
}
.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pine);
}
.map-link:hover { text-decoration: underline; }

/* ==========================================================================
   FOOTER — centrato
   ========================================================================== */
.site-footer {
  background: var(--pine-deep);
  color: rgba(246, 241, 232, 0.85);
  padding: clamp(56px, 8vw, 88px) 0 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.brand--footer .brand-name { color: var(--paper); }
.brand--footer .brand-tag { color: rgba(246, 241, 232, 0.6); }

.footer-blurb { max-width: 520px; font-size: 0.98rem; color: rgba(246, 241, 232, 0.75); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 232, 0.22);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.footer-nav a:hover { background: rgba(246, 241, 232, 0.12); border-color: rgba(246, 241, 232, 0.4); color: var(--white); }

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 0.92rem;
}
.footer-contacts a { color: var(--paper); font-weight: 600; }
.footer-contacts a:hover { color: #ffd9c4; }

.footer-hours {
  font-size: 0.85rem;
  color: rgba(246, 241, 232, 0.65);
  font-style: italic;
}

.footer-bottom {
  margin-top: 12px;
  width: 100%;
  border-top: 1px solid rgba(246, 241, 232, 0.14);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 0.8rem;
  color: rgba(246, 241, 232, 0.55);
}

/* ==========================================================================
   MODALE
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(47, 42, 36, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 42px 36px 34px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-soft);
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--pine); border-color: var(--pine); color: var(--white); }

.modal-check {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--pine-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-check svg circle { stroke: var(--pine); stroke-width: 3; }
.modal-check svg path { stroke: var(--pine); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; animation: checkDraw 0.6s var(--ease) 0.1s both; }
@keyframes checkDraw { from { stroke-dasharray: 60; stroke-dashoffset: 60; } to { stroke-dasharray: 60; stroke-dashoffset: 0; } }

.modal-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.modal-text { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 20px; }
.modal-code-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.modal-code {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--clay-deep);
  margin: 2px 0 22px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   TOAST & BACK TO TOP
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: var(--pine-deep);
  color: var(--paper);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}
.toast[hidden] { display: none; }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(201, 111, 74, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--clay-deep); }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { order: 2; }
  .hero-arch { width: min(360px, 80%); }
  .online-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .info-card { flex: 1 1 260px; }
}

@media (max-width: 900px) {
  .steps-row { grid-template-columns: 1fr; gap: 18px; max-width: 480px; margin-inline: auto; }
  .steps-row::before { display: none; }
  .paths-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .resources-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats-inline { gap: 14px 24px; }
  .hero-bg-arc { width: 420px; height: 420px; top: -80px; right: -120px; }
}
