/* ============================================================================
   Panificio Sanna — Cagliari · dal 1962
   Foglio di stile unico. Font self-hosted (zero terzi), palette "pane e pietra".
   ============================================================================ */

/* ---------- Font self-hosted (variabili, subset latin) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/fraunces.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter.woff2) format('woff2-variations');
}

/* ---------- Design token ---------- */
:root {
  /* palette: crosta, ambra, grano, pietra */
  --brand: #6f4322;        /* crosta */
  --brand-dark: #4a2b14;
  --brand-soft: #efe2cc;
  --accent: #b3591f;       /* ambra cotta — SOLO azioni */
  --accent-dark: #93471a;
  --ink: #2b1d10;
  --text: #4c3a29;
  --muted: #7a684f;
  --bg: #f9f4ea;           /* carta */
  --bg-alt: #f2e8d7;       /* grano chiaro */
  --line: #e3d5bf;
  /* il forno: sezioni scure */
  --forno: #271910;
  --forno-2: #33220f;
  --oro: #d9a15b;
  --avorio: #f6ecdc;
  /* tipografia */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 10px rgba(43, 29, 16, .07);
  --shadow-md: 0 10px 30px rgba(43, 29, 16, .10);
  --shadow-lg: 0 24px 60px rgba(43, 29, 16, .16);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .22 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-color: rgba(111, 67, 34, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
::selection { background: var(--brand-soft); color: var(--ink); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; line-height: 1.3; }
h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Utility ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--forno); color: var(--avorio); }
.section-dark h2, .section-dark h3 { color: var(--avorio); }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); flex: none; }
.section-dark .eyebrow { color: var(--oro); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.65; color: var(--text); max-width: 62ch; }
.section-dark .lead, .section-dark p { color: rgba(246, 236, 220, .82); }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 16px 30px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(179, 89, 31, .28); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 14px 30px rgba(147, 71, 26, .34); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: var(--avorio); }
.section-dark .btn-outline { border-color: var(--oro); color: var(--oro); }
.section-dark .btn-outline:hover { background: var(--oro); color: var(--forno); }
.btn svg { flex: none; }
.btn-note { display: block; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.section-dark .btn-note { color: rgba(246, 236, 220, .6); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(249, 244, 234, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--nav-h); }

.nav-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 1.5rem; color: var(--ink); letter-spacing: .005em; }
.brand-sub { font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brand); margin-top: 3px; }

.nav-menu {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a:not(.btn) {
  display: block; padding: 10px 13px; border-radius: 10px;
  font-size: .97rem; font-weight: 500; color: var(--text); text-decoration: none;
}
.nav-menu a:not(.btn):hover { color: var(--ink); background: rgba(111, 67, 34, .07); }
.nav-menu a[aria-current="page"]:not(.btn) { color: var(--brand-dark); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 10px 10px 0 0; }
.nav-menu .nav-cta { margin-left: 12px; }
.nav-menu .btn { padding: 12px 24px; font-size: .95rem; }

/* ---------- Menu mobile (blocco di riferimento Royaletiger) ---------- */
body.is-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
  top: var(--scroll-lock-top, 0);
  overflow-anchor: none;
}
.nav-overlay { display: none; }
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.6px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block;
    position: fixed; inset: 0; z-index: 89;
    background: rgba(30, 19, 10, .5);
    border: 0; padding: 0; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open {
    opacity: 1; visibility: visible;
    transition: opacity .38s var(--ease), visibility 0s linear 0s;
  }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto;
    z-index: 95;
    width: min(86vw, 360px);
    background: var(--bg);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 100px 26px 40px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open {
    transform: none;
    visibility: visible;
    transition: transform .38s var(--ease), visibility 0s linear 0s;
  }
  .nav-menu a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-menu a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--accent); border-radius: 12px; background: rgba(179, 89, 31, .06); }
  .nav-menu .nav-cta { margin: 14px 0 0; }
  .nav-menu .nav-cta .btn, .nav-menu .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 9vw, 130px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto auto;
  width: 900px; height: 900px;
  background: radial-gradient(circle at center, rgba(217, 161, 91, .28), rgba(217, 161, 91, 0) 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 84px); align-items: center; position: relative; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 38px 0 0; padding: 0; list-style: none;
}
.hero-proof li { display: flex; align-items: center; gap: 9px; font-size: .93rem; font-weight: 500; color: var(--muted); }
.hero-proof svg { color: var(--accent); flex: none; }

/* pannello grafico (predisposto a diventare fotografia) */
.media-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fbf7ef, #f0e4cf);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.media-frame::after {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid rgba(111, 67, 34, .18);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.media-frame svg { display: block; width: 100%; height: auto; }
.media-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 24px 16px;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
.media-frame.dark { background: linear-gradient(160deg, #33220f, #22150c); border-color: rgba(217, 161, 91, .25); }
.media-frame.dark::after { border-color: rgba(217, 161, 91, .22); }
.media-frame.dark figcaption { color: rgba(246, 236, 220, .55); }

/* ---------- Divisore ornamentale ---------- */
.ornament { display: flex; justify-content: center; padding: 6px 0; color: var(--brand); opacity: .55; }
.section-dark .ornament { color: var(--oro); }

/* ---------- Card ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark);
  margin-bottom: 22px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; color: var(--text); font-size: .99rem; }
.card .card-more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .95rem; }

/* card-servizio cliccabile */
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-link:hover { color: inherit; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split .media-frame { min-height: 320px; }
.split-content h2 { margin-bottom: 18px; }
.split-content .btn { margin-top: 12px; }

/* timeline generazioni */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: -4px;
  width: 1.5px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(179, 89, 31, .15);
}
.timeline strong { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }
.timeline span { font-size: .95rem; color: var(--muted); }

/* ---------- Lista del pane (sezione scura) ---------- */
.bread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.bread-list li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(246, 236, 220, .14);
}
.bread-list li:first-child { border-top: 1px solid rgba(246, 236, 220, .14); }
.bread-name { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--avorio); white-space: nowrap; }
.bread-dots { flex: 1; border-bottom: 1px dotted rgba(217, 161, 91, .45); transform: translateY(-6px); min-width: 30px; }
.bread-desc { color: rgba(246, 236, 220, .78); font-size: .98rem; text-align: right; max-width: 52%; }
.bread-badge {
  display: inline-block; margin-left: 10px; padding: 3px 11px;
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forno); background: var(--oro); border-radius: 999px;
  transform: translateY(-3px); white-space: nowrap;
}

/* ---------- Numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--oro);
  display: block;
}
.stat-label { display: block; margin-top: 10px; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 236, 220, .65); }

/* ---------- Orari e dove siamo ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hours {
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 36px; box-shadow: var(--shadow-sm);
}
.hours table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours th, .hours td { text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }
.hours th { font-weight: 600; color: var(--ink); white-space: nowrap; padding-right: 18px; }
.hours td { text-align: right; color: var(--text); }
.hours .closed td { color: var(--muted); }
.hours-note { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }

.contact-lines { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-lines li { display: flex; gap: 14px; align-items: flex-start; }
.contact-lines svg { color: var(--accent); flex: none; margin-top: 4px; }
.contact-lines a { font-weight: 600; }
.contact-lines .sub { display: block; font-size: .88rem; color: var(--muted); }

/* ---------- Blog card ---------- */
.post-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: inherit; }
.post-card-visual {
  background: linear-gradient(150deg, var(--forno-2), var(--forno));
  color: var(--oro); padding: 34px 30px 26px;
}
.post-card-visual .eyebrow { color: var(--oro); margin: 0; }
.post-card-body { padding: 26px 30px 30px; }
.post-card h3 { margin-bottom: 10px; }
.post-card p { color: var(--text); font-size: .98rem; margin-bottom: 14px; }
.post-card .card-more { font-weight: 600; color: var(--brand); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(140deg, var(--forno-2), var(--forno) 70%);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 80px);
  color: var(--avorio);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: auto -10% -60% -10%; height: 400px;
  background: radial-gradient(ellipse at center, rgba(217, 161, 91, .22), transparent 65%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--avorio); max-width: 20ch; margin-inline: auto; }
.cta-banner p { color: rgba(246, 236, 220, .8); max-width: 56ch; margin: 0 auto 30px; }
.cta-banner .hero-cta { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forno); color: rgba(246, 236, 220, .78); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding: clamp(56px, 7vw, 84px) 0 44px;
}
.footer-brand { font-family: var(--font-display); font-size: 1.45rem; font-weight: 650; color: var(--avorio); margin: 0 0 4px; }
.footer-brand-sub { font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); margin: 0 0 18px; }
.footer-col p { font-size: .95rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(246, 236, 220, .78); text-decoration: none; font-size: .96rem; }
.footer-col a:hover { color: var(--oro); }
.footer-col h4 { color: var(--oro); }
.footer-hours { font-size: .92rem; line-height: 1.9; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(246, 236, 220, .14);
  font-size: .88rem; color: rgba(246, 236, 220, .55);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(246, 236, 220, .72); }
.footer-bottom a:hover { color: var(--oro); }

/* ---------- Pagine interne ---------- */
.page-hero {
  padding: clamp(56px, 7vw, 90px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.page-hero .lead { margin-top: 6px; }

/* ---------- Prosa (blog, policy) ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 26px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--ink);
}
.prose .post-meta { font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 4px; font-weight: 600; color: var(--ink);
  font-family: var(--font-display); font-size: 1.1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 4px 20px; }

/* ---------- Form ---------- */
.form-panel {
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 46px); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-privacy { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-privacy input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form-status { min-height: 1.4em; font-weight: 600; color: var(--brand-dark); margin-top: 10px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 120; left: 20px; right: 20px; bottom: 20px;
  max-width: 520px; margin-inline: auto;
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 22px;
}
.cookie-banner h2 { font-size: 1.2rem; margin-bottom: 8px; }
.cookie-banner p { font-size: .92rem; color: var(--text); margin-bottom: 14px; }
.cookie-cats { display: grid; gap: 8px; margin: 0 0 18px; }
.cookie-cat { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink); }
.cookie-cat input { width: 18px; height: 18px; accent-color: var(--accent); }
.cookie-cat .cat-note { color: var(--muted); font-size: .82rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 11px 20px; font-size: .92rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.error-hero { min-height: 62vh; display: flex; align-items: center; text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 650; line-height: 1; color: var(--brand-soft); text-shadow: 0 1px 0 var(--line); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .post-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .bread-desc { max-width: 60%; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 40px); }
  .bread-list li { flex-wrap: wrap; gap: 6px; }
  .bread-dots { display: none; }
  .bread-desc { text-align: left; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: flex-start; }
  .hero-cta .btn { width: 100%; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav-menu, .nav-overlay, .btn, .card, .post-card { transition: none; }
}

/* ---------- Stampa ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .nav-toggle, .cta-banner { display: none; }
}
