/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

:root {
  --bg:        #F8F4EC;
  --bg-alt:    #F0E9DA;
  --bg-dark:   #1F1410;
  --primary:   #722F37;
  --primary-d: #5A2329;
  --accent:    #C9A961;
  --accent-d:  #A88A47;
  --text:      #2A1F1A;
  --text-mut:  #6B5D54;
  --line:      #E5DCC9;
  --white:     #FFFFFF;
  --wa:        #25D366;
  --wa-d:      #1DA851;
  --ig:        #E4405F;
  --ta:        #34E0A1;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --radius: 14px;
  --shadow-sm: 0 2px 12px rgba(31,20,16,.06);
  --shadow-md: 0 12px 40px rgba(31,20,16,.12);
  --shadow-lg: 0 24px 60px rgba(31,20,16,.18);

  --t: 320ms cubic-bezier(.2,.7,.2,1);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ========== UTILITIES ========== */
.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 130px) 0; }
.section__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--bg-dark);
}
.section__sub { color: var(--text-mut); font-size: 1.075rem; max-width: 620px; margin-inline: auto; margin-top: 14px; }
.section__header { margin-bottom: 60px; }
.section__header.center { text-align: center; }
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.lead { font-size: 1.1rem; color: var(--text-mut); margin: 18px 0 22px; max-width: 56ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: .94rem;
  letter-spacing: .02em;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-d); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--bg-dark); border-color: var(--bg-dark); }
.btn--ghost:hover { background: var(--bg-dark); color: var(--white); transform: translateY(-2px); }
.btn--whatsapp {
  background: var(--wa); color: var(--white);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn--whatsapp:hover { background: var(--wa-d); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,211,102,.35); }
.btn--whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--pedidosya {
  background: #FA0050; color: var(--white);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: .94rem;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  transition: transform var(--t), background var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn--pedidosya:hover {
  background: #D8003F;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(250,0,80,.35);
}
.btn--pedidosya.btn--sm { padding: 8px 18px; }

/* Logo PedidosYa SVG ufficiale (peya-red) */
.pedidosya-logo-img {
  height: 22px; width: auto;
  display: block;
  /* Logo originale è rosso #fa0050 → su sfondo rosso lo invertiamo a bianco */
  filter: brightness(0) invert(1);
}
.pedidosya-logo-img--lg { height: 28px; }
.btn--sm .pedidosya-logo-img { height: 18px; }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--sm.btn--whatsapp svg { width: 16px; height: 16px; }

/* ========== NAV ========== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(31,20,16,.55) 0%, rgba(31,20,16,.25) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--t), backdrop-filter var(--t), padding var(--t), box-shadow var(--t);
}
.nav.scrolled {
  background: rgba(248,244,236,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  width: min(var(--container), 92%);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  display: flex; flex-direction: column; line-height: 1;
  text-decoration: none;
}
.nav__logo-text {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: .22em;
  color: var(--white);
  transition: color var(--t);
}
.nav__logo-tag {
  font-family: var(--sans);
  font-size: .58rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  transition: color var(--t);
}
.nav.scrolled .nav__logo-text { color: var(--bg-dark); }
.nav.scrolled .nav__logo-tag { color: var(--accent-d); }

.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: .92rem; font-weight: 500;
  color: var(--white);
  position: relative;
  transition: color var(--t);
}
.nav.scrolled .nav__links a { color: var(--bg-dark); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--t);
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__actions .btn--whatsapp { margin-left: 32px; }
.lang { display: flex; gap: 2px; padding: 4px; background: rgba(255,255,255,.15); border-radius: 999px; }
.nav.scrolled .lang { background: var(--bg-alt); }
.lang__btn {
  padding: 6px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  color: var(--white); opacity: .7;
  transition: all var(--t);
}
.nav.scrolled .lang__btn { color: var(--text); }
.lang__btn.active { background: var(--primary); color: var(--white); opacity: 1; }

.nav__burger {
  display: none;
  width: 36px; height: 36px;
  position: relative;
}
.nav__burger span {
  display: block; position: absolute; left: 6px;
  width: 24px; height: 2px; background: var(--white);
  transition: all var(--t);
}
.nav.scrolled .nav__burger span { background: var(--bg-dark); }
.nav__burger span:nth-child(1) { top: 11px; }
.nav__burger span:nth-child(2) { top: 17px; }
.nav__burger span:nth-child(3) { top: 23px; }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg); top: 17px; }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg); top: 17px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  /* riduce pixelatura immagini a bassa risoluzione */
  image-rendering: -webkit-optimize-contrast;
  filter: blur(.5px) saturate(1.05);
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,20,16,.7) 0%, rgba(31,20,16,.55) 40%, rgba(31,20,16,.92) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(31,20,16,.3) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  width: min(900px, 92%);
  padding: 120px 0 80px;
}
.hero__eyebrow {
  font-size: .8rem; font-weight: 500;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeUp .8s ease both;
}
.hero__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: .98; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero__title-line { display: block; animation: fadeUp .9s ease both; }
.hero__title-line:nth-child(2) { animation-delay: .12s; }
.hero__title-line--accent { font-style: italic; color: var(--accent); }
.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 300;
  max-width: 540px; margin: 0 auto 38px;
  opacity: .92;
  animation: fadeUp 1s ease .24s both;
}
.hero__cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1s ease .36s both;
}
.hero__cta .btn--ghost { color: var(--white); border-color: var(--white); }
.hero__cta .btn--ghost:hover { background: var(--white); color: var(--bg-dark); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 999px;
  animation: fadeUp 1.2s ease .6s both;
}
.hero__scroll span {
  display: block;
  width: 4px; height: 8px; background: var(--white);
  border-radius: 4px;
  margin: 8px auto;
  animation: scrolldot 1.6s ease-in-out infinite;
}
@keyframes scrolldot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== MARQUEE ========== */
.marquee {
  background: var(--bg-dark);
  color: var(--accent);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(201,169,97,.15);
  border-bottom: 1px solid rgba(201,169,97,.15);
}
.marquee__track {
  display: flex; gap: 36px;
  white-space: nowrap;
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem;
  animation: scroll 38s linear infinite;
}
.marquee__track span:not([class]) { flex-shrink: 0; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== STORIA ========== */
.storia { background: var(--bg); }
.storia__grid {
  display: grid; gap: 80px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.storia__media { position: relative; }
.storia__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.storia__badge {
  position: absolute; bottom: -28px; right: -28px;
  width: 170px; height: 170px;
  background: var(--primary); color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--bg);
  padding: 0 14px;
  transform: rotate(-6deg);
  transition: transform var(--t);
}
.storia__badge:hover { transform: rotate(0deg) scale(1.03); }
.storia__badge-rating {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.storia__badge-rating small {
  font-size: 1.3rem; color: var(--accent);
}
.storia__badge-source {
  display: block;
  font-size: .65rem; letter-spacing: .22em; text-transform: uppercase;
  margin-top: 8px;
  color: rgba(255,255,255,.85);
}
.storia__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--serif); font-size: 2rem; color: var(--primary);
}
.stat span {
  font-size: .85rem; color: var(--text-mut); letter-spacing: .04em;
}

/* ========== MENU ========== */
.menu { background: var(--bg-alt); }

/* Filter tabs */
.menu__categories {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 50px;
}
.menu__cat {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--white);
  font-size: .88rem; font-weight: 600;
  color: var(--text-mut);
  border: 1.5px solid transparent;
  transition: all var(--t);
  letter-spacing: .02em;
}
.menu__cat:hover { color: var(--bg-dark); transform: translateY(-1px); }
.menu__cat.active {
  background: var(--bg-dark); color: var(--white);
  border-color: var(--bg-dark);
}

/* Grid card layout */
.menu__grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.menu__cta { text-align: center; margin-top: 60px; }

/* Card senza foto — solo testo */
.card--text {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid transparent;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.card--text .card__photo {
  margin: -28px -26px 18px -26px;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}
.card--text .card__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms ease;
  display: block;
}
.card--text:hover .card__photo img { transform: scale(1.06); }
.card--text.card--featured .card__photo {
  margin-top: -28px;
}
.card--text::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0;
  transition: opacity var(--t);
}
.card--text:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,169,97,.25);
}
.card--text:hover::before { opacity: 1; }
.card--text.card--featured {
  background: linear-gradient(180deg, var(--white) 0%, #FBF7EE 100%);
  border-color: var(--accent);
  outline: none;
}
.card--text.card--featured::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  height: 4px;
}
.card--text .card__tag {
  align-self: flex-start;
  font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-d);
  background: rgba(201,169,97,.16);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 14px;
}
.card__tag--bestseller {
  color: var(--white) !important;
  background: var(--primary) !important;
  letter-spacing: .18em !important;
}
.card__tag--offer {
  color: var(--white) !important;
  background: #C0392B !important;
  letter-spacing: .14em !important;
}
.card__price s {
  color: var(--text-mut);
  font-weight: 400;
  margin-right: 4px;
  text-decoration: line-through;
  text-decoration-color: rgba(114,47,55,.6);
}
.card--text .card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.card--text .card__head h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.35rem;
  color: var(--bg-dark);
  letter-spacing: -.005em;
  line-height: 1.2;
}
.card--text .card__price {
  font-family: var(--sans); font-size: .9rem; font-weight: 700;
  color: var(--primary);
  background: var(--bg-alt);
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.card--text p {
  color: var(--text-mut);
  font-size: .92rem; line-height: 1.55;
  margin: 0;
}
.card--text p em {
  font-style: normal;
  color: var(--primary);
  font-weight: 500;
  font-size: .85rem;
  display: block;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .menu__grid { grid-template-columns: 1fr; gap: 16px; }
  .card--text { padding: 22px 20px; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__img { aspect-ratio: 4/3; overflow: hidden; }
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms ease;
}
.card:hover .card__img img { transform: scale(1.06); }
.card__img--ph {
  background:
    radial-gradient(circle at 30% 30%, rgba(201,169,97,.35), transparent 50%),
    linear-gradient(135deg, var(--bg-alt) 0%, var(--accent) 200%);
  display: grid; place-items: center;
  position: relative;
}
.card__img--ph::after {
  content: attr(data-icon);
  font-size: 4.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
  opacity: .85;
}
.gallery-marquee__ph {
  background: linear-gradient(135deg, var(--bg-alt), var(--accent));
}
.gallery-marquee__ph::after {
  content: '✦';
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-size: 3rem; color: var(--white); opacity: .7;
}
.media-ph {
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,169,97,.4), transparent 55%),
    linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
}
.media-ph::after {
  content: attr(data-icon);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 6rem;
  color: var(--accent);
  opacity: .9;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}
.academia__media.media-ph,
.storia__media.media-ph {
  aspect-ratio: 4/5;
}
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.card__head h3 {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--bg-dark); line-height: 1.2;
}
.card__price {
  font-family: var(--sans); font-size: .9rem; font-weight: 700;
  color: var(--primary);
  background: var(--bg-alt);
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.card__body p { color: var(--text-mut); font-size: .92rem; line-height: 1.55; }
.card__body p em { font-style: normal; color: var(--primary); font-weight: 500; font-size: .85rem; }
.card__tag {
  align-self: flex-start;
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-d); background: rgba(201,169,97,.16);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 12px;
}
.card--featured { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ========== TESTIMONIALS · slider stile editoriale ========== */
.testimonials {
  position: relative;
  background: var(--bg-dark);
  color: var(--bg);
  overflow: hidden;
}
.testimonials__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(201,169,97,.10), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(114,47,55,.18), transparent 60%);
  pointer-events: none;
}
.testimonials .container { position: relative; z-index: 1; }
.testimonials .section__title { color: var(--white); }
.testimonials .eyebrow { color: var(--accent); }

.slider {
  position: relative;
  max-width: 880px; margin: 0 auto;
}
.slider__viewport {
  position: relative;
  min-height: 320px;
}
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
  padding: 0 60px;
}
.slide.active {
  opacity: 1; transform: none;
  pointer-events: auto;
}
.slide__stars {
  color: var(--accent);
  font-size: 1.2rem; letter-spacing: .25em;
  margin-bottom: 32px;
}
.slide__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.5;
  max-width: 760px;
  color: rgba(248,244,236,.95);
  margin-bottom: 36px;
  position: relative;
}
.slide__quote::before,
.slide__quote::after {
  font-family: var(--serif);
  color: var(--accent);
  opacity: .35;
  font-size: 2.5em;
  line-height: 0;
  position: relative; top: .35em;
  margin: 0 .12em;
}
.slide__quote::before { content: '“'; }
.slide__quote::after  { content: '”'; }
.slide__author {
  display: flex; flex-direction: column; gap: 6px;
}
.slide__author strong {
  font-family: var(--sans);
  font-size: .95rem; font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
}
.slide__author span {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all var(--t);
  z-index: 2;
}
.slider__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}
.slider__arrow--prev { left: -10px; }
.slider__arrow--next { right: -10px; }

.slider__dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 36px;
}
.slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  border: 0; padding: 0;
  transition: all var(--t);
}
.slider__dot.active {
  background: var(--accent);
  width: 28px; border-radius: 999px;
}

/* rating bar (sopra slider) */
.rating-bar {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px;
  margin: 0 auto 50px;
  max-width: 880px;
}
.rating-bar__item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 16px 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  min-width: 160px;
  transition: all var(--t);
}
.rating-bar__item:hover {
  background: rgba(201,169,97,.10);
  border-color: rgba(201,169,97,.35);
  transform: translateY(-3px);
}
.rating-bar__platform {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(248,244,236,.55);
}
.rating-bar__score {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
}

/* CTA sotto slider */
.testimonials__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
}
.testimonials__cta .btn--ghost {
  color: var(--accent);
  border-color: rgba(201,169,97,.4);
}
.testimonials__cta .btn--ghost:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

@media (max-width: 720px) {
  .rating-bar { gap: 10px; margin-bottom: 36px; }
  .rating-bar__item { padding: 12px 18px; min-width: 0; flex: 1 1 140px; }
  .rating-bar__platform { font-size: .65rem; }
  .rating-bar__score { font-size: 1rem; }
}

@media (max-width: 720px) {
  .slide { padding: 0 12px; }
  .slider__arrow { width: 38px; height: 38px; font-size: 1.3rem; }
  .slider__arrow--prev { left: -6px; }
  .slider__arrow--next { right: -6px; }
  .slider__viewport { min-height: 380px; }
}

/* ========== ACADEMIA ========== */
.academia { background: var(--bg-dark); color: var(--bg); position: relative; overflow: hidden; }
.academia::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,169,97,.18), transparent 70%);
}
.academia .section__title { color: var(--white); }
.academia .eyebrow { color: var(--accent); }
.academia .lead { color: rgba(248,244,236,.78); }
.academia__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.academia__list { list-style: none; margin: 22px 0 32px; }
.academia__list li {
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative;
  color: rgba(248,244,236,.85);
}
.academia__list li::before {
  content: '✦';
  position: absolute; left: 0; top: 14px;
  color: var(--accent);
}
.academia__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ========== GALLERIA · carosello orizzontale ========== */
.galleria { background: var(--bg); padding-bottom: clamp(70px, 9vw, 130px); }
.gallery-marquee {
  position: relative;
  overflow: hidden;
  margin: 50px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gallery-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: galleryScroll 60s linear infinite;
}
.gallery-marquee:hover .gallery-marquee__track { animation-play-state: paused; }
@keyframes galleryScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.gallery-marquee figure {
  flex-shrink: 0;
  width: 280px; height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-marquee figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms ease;
}
.gallery-marquee figure:hover img { transform: scale(1.08); }
.galleria__follow {
  text-align: center;
  font-size: .98rem;
}
.galleria__follow a {
  font-family: var(--serif); font-style: italic;
  color: var(--primary); margin-left: 6px;
  border-bottom: 1px solid var(--accent);
}
@media (max-width: 720px) {
  .gallery-marquee figure { width: 220px; height: 260px; }
  .gallery-marquee__track { animation-duration: 45s; }
}

/* ========== CONTACTO ========== */
.contacto { background: var(--bg-alt); }
.contacto__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: stretch;
}
.contacto__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin: 36px 0;
}
.contacto__item h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.contacto__item p { color: var(--text); font-size: .98rem; line-height: 1.55; }
.contacto__item a { color: var(--text); border-bottom: 1px solid var(--accent); }
.contacto__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.contacto__map {
  border-radius: var(--radius); overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow-md);
}
.contacto__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark); color: rgba(248,244,236,.7);
  padding: 60px 0 30px;
}
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand { display: flex; flex-direction: column; line-height: 1.2; }
.footer__brand-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.8rem; letter-spacing: .22em;
  color: var(--white);
}
.footer__brand small {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  font-size: .9rem;
  transition: color var(--t);
}
.footer__links a:hover { color: var(--accent); }
.footer__social {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end;
}
.social {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(248,244,236,.85);
  transition: all var(--t);
}
.social svg { width: 20px; height: 20px; }
.social:hover { transform: translateY(-3px); color: var(--white); }
.social--ig:hover {
  background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF 100%);
}
.social--wa:hover { background: var(--wa); }
.social--ta:hover { background: var(--ta); color: var(--bg-dark); }
.footer__copy {
  text-align: center; font-size: .82rem; margin-top: 26px;
  color: rgba(248,244,236,.5);
}

/* ========== FLOATING WHATSAPP ========== */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 4px 12px rgba(0,0,0,.18);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.wa-float svg { width: 32px; height: 32px; position: relative; z-index: 2; }
.wa-float:hover {
  background: var(--wa-d);
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(37,211,102,.55), 0 6px 16px rgba(0,0,0,.22);
}
.wa-float__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--wa);
  opacity: .55;
  animation: waPulse 2.2s ease-out infinite;
  z-index: 1;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .55; }
  80%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ========== ANIMATIONS ON SCROLL ========== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .storia__grid,
  .academia__grid,
  .contacto__grid { grid-template-columns: 1fr; gap: 50px; }
  .storia__media { max-width: 480px; margin: 0 auto; }
  .storia__badge { width: 130px; height: 130px; right: -10px; bottom: -20px; }
  .academia__media { max-width: 480px; margin: 0 auto; }
  .galleria__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer__brand { justify-content: center; }
  .footer__social { justify-content: center; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 70px 0 0 0;
    background: var(--bg);
    flex-direction: column; align-items: center; justify-content: flex-start;
    padding-top: 60px; gap: 28px;
    transform: translateX(100%);
    transition: transform var(--t);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { color: var(--bg-dark); font-size: 1.1rem; }
  .nav__burger { display: block; }
  .nav__actions .btn { display: none; }
  .nav__logo-text { font-size: 1.3rem; letter-spacing: .18em; }
  .nav__logo-tag { font-size: .5rem; }

  .footer__brand { align-items: center; }
  .footer__brand-name { font-size: 1.5rem; }
  .footer__social { justify-content: center; }

  .contacto__row { grid-template-columns: 1fr; gap: 24px; }
  .storia__stats { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; margin-top: 28px; }
  .stat { display: flex; align-items: baseline; gap: 14px; }
  .stat strong { font-size: 1.5rem; }

  .marquee__track { font-size: 1.1rem; gap: 22px; }

  .lang { padding: 2px; }
  .lang__btn { padding: 4px 8px; font-size: .7rem; }

  .wa-float { width: 56px; height: 56px; right: 18px; bottom: 18px; }
  .wa-float svg { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .galleria__grid { grid-template-columns: 1fr 1fr; }
  .galleria__grid figure { aspect-ratio: 1 !important; }
  .hero__cta .btn { width: 100%; }
}
