/* ════════════════════════════════════════════════════════════
   PIZZA IN — Redesign v2
   Stile: Caldo artigianale (terracotta, legno, vissuto)
   Tutto vector, niente foto, tipografia editoriale
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ── Palette caldo artigianale ── */
  --terracotta:    #B8421A;   /* rosso terracotta caldo */
  --terracotta-sc: #8A2F12;   /* scuro */
  --legno:         #4A2A18;   /* marrone legno */
  --legno-sc:      #2F1A0E;   /* legno scuro */
  --pergamena:     #F5EBD9;   /* sfondo caldo principale */
  --pergamena-sc:  #E8D9BD;   /* pergamena scura */
  --ocra:          #C49232;   /* oro caldo */
  --ocra-ch:       #E8B557;   /* oro luminoso */
  --crema:         #FAF2DE;
  --grano:         #F7E9C7;
  --carbone:       #1F1208;   /* nero caldo (carbone) */
  --inchiostro:    #3D2818;   /* testo scuro caldo */
  --polvere:       #8B7355;   /* testo terziario */

  /* ── Tipografia ── */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Spazi */
  --radius: 14px;
  --radius-lg: 24px;

  /* Ombre morbide */
  --shadow-soft: 0 4px 24px rgba(58, 30, 12, 0.08);
  --shadow-warm: 0 12px 40px rgba(184, 66, 26, 0.18);

  /* ── ALIAS retrocompatibilità (pagine vecchie) ── */
  --fuoco: var(--terracotta);
  --brace: var(--terracotta-sc);
  --oro: var(--ocra);
  --grano: var(--pergamena);
  --crema: #FAF2DE;
  --mattone: var(--legno);
  --fumo: var(--inchiostro);
  --bianco: #FFFDF7;
  --testo: var(--inchiostro);
  --grigio: var(--polvere);

  /* Font alias */
  --font-titolo: var(--font-serif);
  --font-corpo:  var(--font-sans);
  --font-accent: var(--font-sans);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-sans);
  background: var(--pergamena);
  color: var(--inchiostro);
  overflow-x: hidden;
  line-height: 1.6;
  /* Texture grano sottile - simula carta artigianale */
  background-image:
    radial-gradient(at 20% 30%, rgba(196,146,50,0.04) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(184,66,26,0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* Selection caldo */
::selection { background: var(--terracotta); color: var(--crema); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--pergamena-sc); }
::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--terracotta-sc); }

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .4s cubic-bezier(.2,.8,.2,1);
  background: transparent;
}
.nav.scrolled {
  background: rgba(245, 235, 217, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 10px 32px;
  box-shadow: 0 1px 0 rgba(58,30,12,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--inchiostro);
  font-style: italic;
  letter-spacing: -0.5px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nav-logo:hover { transform: translateX(2px); }
.nav-logo svg { width: 36px; height: 36px; transition: transform .5s; }
.nav-logo:hover svg { transform: rotate(8deg); }
.nav-logo span em {
  color: var(--terracotta);
  font-style: normal;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--inchiostro);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 50px;
  transition: all .25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width .3s, left .3s;
}
.nav-links a:hover::after { width: 24px; left: calc(50% - 12px); }
.nav-links a:hover { color: var(--terracotta); }
.nav-links a.active { color: var(--terracotta); }
.nav-links a.active::after { width: 24px; left: calc(50% - 12px); }

.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-btn-outline {
  background: transparent;
  color: var(--inchiostro);
  border: 1.5px solid rgba(31,18,8,0.15);
}
.nav-btn-outline:hover {
  border-color: var(--inchiostro);
  background: var(--inchiostro);
  color: var(--crema);
}
.nav-btn-solid {
  background: var(--terracotta);
  color: var(--crema);
  position: relative;
  overflow: hidden;
}
.nav-btn-solid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s;
}
.nav-btn-solid:hover::before { transform: translateX(100%); }
.nav-btn-solid:hover {
  background: var(--terracotta-sc);
  box-shadow: 0 8px 24px rgba(184,66,26,.4);
  transform: translateY(-2px);
}

.nav-btn-call {
  background: #1F7A4D;
  color: #fff;
}
.nav-btn-call:hover {
  background: #155C39;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31,122,77,.35);
}

/* Hamburger mobile */
.nav-cart {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--terracotta);
  padding: 0;
}
.nav-cart svg { width: 24px; height: 24px; }
.nav-cart-bubble {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--inchiostro);
  border-radius: 2px;
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ══════════════════════════════════════════════════════════
   HERO - LA SORPRESA
   ══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
  overflow: hidden;
}

/* Decorazione carta da pacchi */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(196,146,50,0.10) 0%, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(184,66,26,0.10) 0%, transparent 35%);
  pointer-events: none;
}

/* Pattern olive/grano sui lati */
.hero-pattern-left,
.hero-pattern-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 80px;
  opacity: 0.08;
  pointer-events: none;
}
.hero-pattern-left { left: 0; }
.hero-pattern-right { right: 0; transform: scaleX(-1); }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* ── Colonna sinistra: TESTO ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFadeUp 1s .1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--terracotta);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 400;
  font-style: italic;
  line-height: 0.95;
  color: var(--inchiostro);
  margin-bottom: 16px;
  letter-spacing: -2px;
  opacity: 0;
  animation: heroFadeUp 1s .25s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-title-line {
  display: block;
  overflow: visible;
  padding-bottom: 0.05em;
}
.hero-title .accent {
  color: var(--terracotta);
  font-weight: 900;
  font-style: italic;
}
.hero-title .normale {
  font-style: normal;
  font-weight: 500;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 400;
  color: var(--polvere);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 480px;
  opacity: 0;
  animation: heroFadeUp 1s .4s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-sub em { color: var(--terracotta); font-style: italic; }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 1s .55s cubic-bezier(.2,.8,.2,1) forwards;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.btn-hero-primary {
  background: var(--terracotta);
  color: var(--crema);
  box-shadow: 0 8px 20px rgba(184,66,26,.25);
}
.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .7s;
}
.btn-hero-primary:hover::before { transform: translateX(100%); }
.btn-hero-primary:hover {
  background: var(--terracotta-sc);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(184,66,26,.4);
}
.btn-hero-arrow {
  display: inline-block;
  transition: transform .3s;
}
.btn-hero-primary:hover .btn-hero-arrow {
  transform: translateX(4px);
}
.btn-hero-secondary {
  background: transparent;
  color: var(--inchiostro);
  border: 1.5px solid rgba(31,18,8,0.2);
}
.btn-hero-secondary:hover {
  border-color: var(--inchiostro);
  background: var(--inchiostro);
  color: var(--crema);
  transform: translateY(-3px);
}

/* Indicator chiusura/apertura */
.hero-stato {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(31,122,77,0.1);
  border: 1px solid rgba(31,122,77,0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #1F7A4D;
  opacity: 0;
  animation: heroFadeUp 1s .7s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-stato.chiuso {
  background: rgba(184,66,26,0.1);
  border-color: rgba(184,66,26,0.25);
  color: var(--terracotta);
}
.hero-stato-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1F7A4D;
  position: relative;
}
.hero-stato.chiuso .hero-stato-dot { background: var(--terracotta); }
.hero-stato-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.35;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50%      { transform: scale(2); opacity: 0; }
}

/* ── Colonna destra: ILLUSTRAZIONE FORNO ── */
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  animation: heroFadeRight 1.2s .2s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Etichette flottanti che ruotano attorno al forno */
.hero-badge {
  position: absolute;
  background: var(--crema);
  border: 1.5px solid var(--terracotta);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-sans);
  opacity: 0;
  transition: transform .4s;
}
.hero-badge-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--terracotta);
  font-style: italic;
  line-height: 1;
  display: block;
}
.hero-badge-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--polvere);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}
.hero-badge:hover { transform: translateY(-3px) rotate(0deg) !important; }

.hero-badge-1 {
  top: 8%; left: -3%;
  transform: rotate(-5deg);
  animation: badgeFloat1 1s 1.2s cubic-bezier(.34,1.56,.64,1) forwards;
}
.hero-badge-2 {
  top: 38%; right: -8%;
  transform: rotate(4deg);
  animation: badgeFloat2 1s 1.4s cubic-bezier(.34,1.56,.64,1) forwards;
}
.hero-badge-3 {
  bottom: 8%; left: 5%;
  transform: rotate(3deg);
  animation: badgeFloat3 1s 1.6s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes badgeFloat1 {
  0%   { opacity: 0; transform: translate(-30px, -20px) rotate(-15deg) scale(.8); }
  100% { opacity: 1; transform: rotate(-5deg) scale(1); }
}
@keyframes badgeFloat2 {
  0%   { opacity: 0; transform: translate(30px, -10px) rotate(15deg) scale(.8); }
  100% { opacity: 1; transform: rotate(4deg) scale(1); }
}
@keyframes badgeFloat3 {
  0%   { opacity: 0; transform: translate(-20px, 30px) rotate(-10deg) scale(.8); }
  100% { opacity: 1; transform: rotate(3deg) scale(1); }
}

@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeRight {
  0%   { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Fiamma SVG - animazione realistica con flicker organico */
.fiamma-outer {
  animation: fiamma-outer 2.3s ease-in-out infinite;
  transform-origin: 50% 100%;
  transform-box: fill-box;
}
.fiamma-mid {
  animation: fiamma-mid 1.7s ease-in-out infinite;
  transform-origin: 50% 100%;
  transform-box: fill-box;
}
.fiamma-inner {
  animation: fiamma-inner 1.2s ease-in-out infinite;
  transform-origin: 50% 100%;
  transform-box: fill-box;
}
.fiamma-core {
  animation: fiamma-core 0.9s ease-in-out infinite;
  transform-origin: 50% 100%;
  transform-box: fill-box;
}
.fiamma-tongue1 {
  animation: fiamma-tongue1 2.1s ease-in-out infinite;
  transform-origin: 50% 100%;
  transform-box: fill-box;
}
.fiamma-tongue2 {
  animation: fiamma-tongue2 1.9s ease-in-out infinite;
  transform-origin: 50% 100%;
  transform-box: fill-box;
}

@keyframes fiamma-outer {
  0%   { transform: scale(1.00, 0.95) skewX(-1deg);  opacity: 0.85; }
  25%  { transform: scale(0.97, 1.05) skewX(2deg);   opacity: 0.95; }
  50%  { transform: scale(1.03, 0.98) skewX(-2deg);  opacity: 0.85; }
  75%  { transform: scale(0.98, 1.04) skewX(1deg);   opacity: 0.92; }
  100% { transform: scale(1.00, 0.95) skewX(-1deg);  opacity: 0.85; }
}
@keyframes fiamma-mid {
  0%   { transform: scale(1.00, 0.96) skewX(2deg);   opacity: 0.95; }
  30%  { transform: scale(0.95, 1.08) skewX(-3deg);  opacity: 1; }
  60%  { transform: scale(1.05, 0.94) skewX(3deg);   opacity: 0.9; }
  100% { transform: scale(1.00, 0.96) skewX(2deg);   opacity: 0.95; }
}
@keyframes fiamma-inner {
  0%   { transform: scale(0.95, 1.02) skewX(-3deg);  opacity: 1; }
  35%  { transform: scale(1.05, 0.95) skewX(4deg);   opacity: 0.92; }
  70%  { transform: scale(0.92, 1.07) skewX(-4deg);  opacity: 1; }
  100% { transform: scale(0.95, 1.02) skewX(-3deg);  opacity: 1; }
}
@keyframes fiamma-core {
  0%   { transform: scale(0.9, 1.1) skewX(2deg);    opacity: 0.85; }
  40%  { transform: scale(1.1, 0.92) skewX(-3deg);  opacity: 1; }
  80%  { transform: scale(0.95, 1.05) skewX(3deg);  opacity: 0.9; }
  100% { transform: scale(0.9, 1.1) skewX(2deg);    opacity: 0.85; }
}
@keyframes fiamma-tongue1 {
  0%, 100% { transform: translateX(-3px) scale(0.9, 1.1); opacity: 0.6; }
  50%      { transform: translateX(2px) scale(1.05, 0.9); opacity: 0.85; }
}
@keyframes fiamma-tongue2 {
  0%, 100% { transform: translateX(3px) scale(1.0, 1.05); opacity: 0.7; }
  50%      { transform: translateX(-2px) scale(0.95, 0.95); opacity: 0.5; }
}

/* Scintille realistiche - traiettorie e durate diverse */
.scintilla {
  opacity: 0;
  filter: drop-shadow(0 0 3px currentColor);
}
.scintilla-1 { animation: scint1 3.5s linear infinite; }
.scintilla-2 { animation: scint2 4s .8s linear infinite; }
.scintilla-3 { animation: scint3 3s 1.5s linear infinite; }
.scintilla-4 { animation: scint4 4.5s 2.2s linear infinite; }
.scintilla-5 { animation: scint5 3.2s 0.4s linear infinite; }
.scintilla-6 { animation: scint6 3.8s 2.8s linear infinite; }
.scintilla-7 { animation: scint7 4.2s 1.1s linear infinite; }
.scintilla-8 { animation: scint8 3.6s 3s linear infinite; }

@keyframes scint1 {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  15%  { opacity: 1; transform: translate(-5px, -40px) scale(1.2); }
  60%  { opacity: 0.6; transform: translate(8px, -130px) scale(0.9); }
  100% { transform: translate(-3px, -200px) scale(0.3); opacity: 0; }
}
@keyframes scint2 {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  20%  { opacity: 1; transform: translate(10px, -50px) scale(1.1); }
  70%  { opacity: 0.5; transform: translate(-5px, -150px) scale(0.8); }
  100% { transform: translate(15px, -220px) scale(0.2); opacity: 0; }
}
@keyframes scint3 {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  18%  { opacity: 1; transform: translate(-3px, -35px) scale(1.3); }
  100% { transform: translate(-15px, -180px) scale(0.3); opacity: 0; }
}
@keyframes scint4 {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  12%  { opacity: 1; transform: translate(8px, -45px) scale(1.1); }
  100% { transform: translate(20px, -210px) scale(0.4); opacity: 0; }
}
@keyframes scint5 {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  20%  { opacity: 0.9; transform: translate(-10px, -55px) scale(1); }
  100% { transform: translate(-20px, -190px) scale(0.2); opacity: 0; }
}
@keyframes scint6 {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  16%  { opacity: 1; transform: translate(5px, -50px) scale(1.2); }
  100% { transform: translate(18px, -200px) scale(0.3); opacity: 0; }
}
@keyframes scint7 {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  20%  { opacity: 1; transform: translate(-2px, -45px) scale(1.4); }
  100% { transform: translate(-12px, -180px) scale(0.4); opacity: 0; }
}
@keyframes scint8 {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  15%  { opacity: 0.95; transform: translate(7px, -40px) scale(1.1); }
  100% { transform: translate(2px, -195px) scale(0.3); opacity: 0; }
}

/* Vapore pizza */
.vapore {
  fill: rgba(255,255,255,0.6);
  animation: vapore-rise 3s ease-in-out infinite;
  opacity: 0;
  transform-origin: center;
}
.vapore:nth-child(2) { animation-delay: 0.5s; }
.vapore:nth-child(3) { animation-delay: 1s; }
@keyframes vapore-rise {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  20%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-80px) scale(1.4) translateX(15px); }
}

/* ══════════════════════════════════════════════════════════
   MARQUEE - banda scorrevole sotto hero
   ══════════════════════════════════════════════════════════ */
.marquee {
  background: var(--inchiostro);
  color: var(--pergamena);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-dot {
  width: 8px; height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════
   SEZIONE - generica
   ══════════════════════════════════════════════════════════ */
.section {
  padding: 100px 24px;
  position: relative;
}
.section-alt {
  background: var(--crema);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.container-sm {
  max-width: 880px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--terracotta);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--inchiostro);
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}
.section-title em {
  color: var(--terracotta);
  font-weight: 900;
}
.section-sub {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--polvere);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   CATEGORIE - card vissute con illustrazioni
   ══════════════════════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--crema);
  border: 1px solid rgba(58,30,12,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--inchiostro);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all .5s cubic-bezier(.34,1.2,.64,1);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: translateY(101%);
  transition: transform .6s cubic-bezier(.7,0,.3,1);
  z-index: 0;
}
.cat-card > * { position: relative; z-index: 1; }
.cat-card:hover {
  transform: translateY(-8px);
  border-color: var(--terracotta);
}
.cat-card:hover::before { transform: translateY(0); }
.cat-card:hover * { color: var(--crema) !important; }
.cat-card:hover .cat-card-num { color: rgba(250,242,222,0.4) !important; }

.cat-card-num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--polvere);
  font-style: italic;
  margin-bottom: 20px;
  transition: color .4s;
}
.cat-card-illo {
  width: 110px;
  height: 110px;
  margin-bottom: 24px;
  background: var(--pergamena);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), background .5s;
}
.cat-card:hover .cat-card-illo {
  transform: rotate(-8deg) scale(1.1);
  background: rgba(250,242,222,0.2);
}
.cat-card-illo svg {
  width: 100%; height: 100%;
}
.cat-card-illo svg path,
.cat-card-illo svg circle,
.cat-card-illo svg rect {
  transition: stroke .4s, fill .4s;
}
.cat-card:hover .cat-card-illo .stroke-it { stroke: var(--crema); }
.cat-card:hover .cat-card-illo .fill-it { fill: var(--crema); }

.cat-card-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--inchiostro);
  margin-bottom: 8px;
}
.cat-card-desc {
  font-size: 13px;
  color: var(--polvere);
  margin-bottom: 20px;
  transition: color .4s;
}
.cat-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 24px;
  flex: 1;
}
.cat-card-list li {
  font-size: 13px;
  font-weight: 500;
  color: var(--inchiostro);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .4s;
}
.cat-card-list li::before {
  content: '';
  width: 12px;
  height: 1.5px;
  background: var(--terracotta);
  flex-shrink: 0;
  transition: background .4s;
}
.cat-card:hover .cat-card-list li::before { background: var(--crema); }
.cat-card-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .3s, color .4s;
}
.cat-card:hover .cat-card-cta { gap: 14px; }

/* ══════════════════════════════════════════════════════════
   VALORI - timeline orizzontale
   ══════════════════════════════════════════════════════════ */
.valori {
  position: relative;
}
.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  position: relative;
}
.valori-grid::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 16%;
  right: 16%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--terracotta) 20%, var(--terracotta) 80%, transparent);
  z-index: 0;
}
.valore-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.valore-circle {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  background: var(--crema);
  border: 3px solid var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .5s;
}
.valore-circle::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1.5px dashed var(--terracotta);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .4s, transform .8s;
}
.valore-card:hover .valore-circle {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 12px 32px rgba(184,66,26,.25);
}
.valore-card:hover .valore-circle::before {
  opacity: 0.6;
  transform: rotate(360deg);
}
.valore-circle svg {
  width: 80px;
  height: 80px;
}
.valore-card-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  color: var(--inchiostro);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.valore-card-text {
  font-size: 15px;
  color: var(--polvere);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   ORARI - layout asimmetrico stile menù
   ══════════════════════════════════════════════════════════ */
.orari-block {
  background: var(--inchiostro);
  color: var(--pergamena);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}
.orari-block::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 80%; height: 180%;
  background: radial-gradient(circle, rgba(196,146,50,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.orari-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(245,235,217,0.15);
  position: relative;
}
.orari-head-text {
  flex: 1;
}
.orari-eyebrow {
  color: var(--ocra);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.orari-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--pergamena);
}
.orari-title em {
  color: var(--ocra);
  font-weight: 900;
}
.orari-tel {
  text-align: right;
}
.orari-tel-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ocra);
  margin-bottom: 6px;
}
.orari-tel-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--pergamena);
  text-decoration: none;
}
.orari-tel-num:hover { color: var(--ocra-ch); }

.orari-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
  position: relative;
}
.orari-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(245,235,217,0.15);
  gap: 20px;
}
.orari-row-day {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--pergamena);
  white-space: nowrap;
}
.orari-row-time {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(245,235,217,0.7);
  text-align: right;
}
.orari-row-time strong {
  display: block;
  font-weight: 600;
  color: var(--pergamena);
}
.orari-row.chiuso .orari-row-day { color: rgba(245,235,217,0.5); }
.orari-row.chiuso .orari-row-time {
  color: var(--terracotta);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   CTA BANNER finale
   ══════════════════════════════════════════════════════════ */
.cta-final {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-final-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.cta-final-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--inchiostro);
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.cta-final-title em {
  color: var(--terracotta);
  font-weight: 900;
}
.cta-final-sub {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--polvere);
  margin-bottom: 40px;
  line-height: 1.5;
}
.cta-final-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
footer {
  background: var(--legno-sc);
  color: rgba(245,235,217,0.7);
  padding: 80px 24px 32px;
  position: relative;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 18px;
}
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--pergamena);
  font-style: italic;
  letter-spacing: -1px;
}
.footer-logo-text em {
  color: var(--terracotta);
  font-style: normal;
  font-weight: 900;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  color: rgba(245,235,217,0.55);
}
.footer-h {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ocra);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(245,235,217,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s, padding-left .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: var(--ocra-ch);
  padding-left: 4px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(245,235,217,0.08);
  text-align: center;
  font-size: 12px;
  color: rgba(245,235,217,0.4);
}

/* ══════════════════════════════════════════════════════════
   STICKY BOTTOM CTA (mobile)
   ══════════════════════════════════════════════════════════ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  background: var(--terracotta);
  color: var(--crema);
  border-radius: 50px;
  padding: 16px 24px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 32px rgba(184,66,26,.5);
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateY(120%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.sticky-cta.show {
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   MENU MOBILE
   ══════════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--pergamena);
  z-index: 999;
  padding: 80px 32px 32px;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-links {
  list-style: none;
  margin-bottom: auto;
}
.mobile-menu-links a {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  font-style: italic;
  color: var(--inchiostro);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(58,30,12,0.1);
  transition: color .3s, padding-left .3s;
}
.mobile-menu-links a:hover {
  color: var(--terracotta);
  padding-left: 10px;
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 30px;
}

/* ══════════════════════════════════════════════════════════
   REVEAL & ANIMAZIONI
   ══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-1 { transition-delay: .1s; }
.reveal-2 { transition-delay: .2s; }
.reveal-3 { transition-delay: .3s; }
.reveal-4 { transition-delay: .4s; }

/* Scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--ocra-ch), var(--terracotta));
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
  box-shadow: 0 0 12px rgba(184,66,26,.5);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-eyebrow, .hero-cta { justify-content: center; }
  .hero-illustration { max-width: 420px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .valori-grid { grid-template-columns: 1fr; gap: 50px; }
  .valori-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav.scrolled { padding: 8px 20px; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cart { display: flex; }

  .hero { padding: 46px 20px 14px; min-height: auto; }
  .hero-inner { max-width: 100%; overflow: visible; gap: 14px; }
  .hero-illustration { max-width: 330px; margin-left: auto; margin-right: auto; }
  .hero-title { font-size: clamp(40px, 10vw, 56px); letter-spacing: -1px; }
  .hero-sub { font-size: 16px; margin-bottom: 14px; }
  .hero-stato { margin-top: 10px; }
  .btn-hero { padding: 16px 26px; font-size: 14px; }
  .hero-badge { padding: 10px 14px; }
  .hero-badge-num { font-size: 22px; }
  .hero-badge-lbl { font-size: 9px; letter-spacing: 1px; }
  /* Riposiziona i badge per stare dentro lo schermo su mobile */
  .hero-badge-1 { top: 2%; left: 0%; }
  .hero-badge-2 { top: 40%; right: 0%; }
  .hero-badge-3 { bottom: 4%; left: 2%; }

  .section { padding: 70px 20px; }
  .section-title { font-size: clamp(34px, 9vw, 48px); letter-spacing: -1px; }
  .section-sub { font-size: 16px; }

  .cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .cat-card { min-height: 280px; padding: 28px 24px; }

  .marquee-item { font-size: 18px; }

  .orari-block { padding: 40px 28px; border-radius: 18px; }
  .orari-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .orari-tel { text-align: left; }
  .orari-grid { grid-template-columns: 1fr; gap: 0; }
  .orari-row-day { font-size: 18px; }
  .orari-row-time { font-size: 13px; }

  .cta-final { padding: 80px 20px; }
  .cta-final-title { letter-spacing: -1px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-logo, .footer-links a { justify-content: center; }
  .footer-desc { margin: 0 auto; }

  .sticky-cta { display: flex; }
}

/* Accessibilità: ridotta animazione */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .scintilla, .vapore, .fiamma-outer, .fiamma-mid, .fiamma-inner,
  .marquee-track, .hero-stato-dot::before {
    animation: none !important;
  }
}
