/*
Theme Name: Pasta e Sfizi — The Taste Lab
Theme URI: https://pastaesfizi.ch
Author: Pasta e Sfizi Web Team
Description: Brand theme for Pasta e Sfizi The Taste Lab — black & gold, restaurant, Lausanne.
Version: 1.7.1
License: GPL v2 or later
Text Domain: pasta-esfizi
*/

:root {
  --bg: #1a1a1a;
  --bg-warm: #2a2218;
  --gold: #c8a460;
  --gold-light: #d9b876;
  --cream: #f5ebdd;
  --text: #2a1e15;
  --light: #8a7560;
  --white: #ffffff;
  --dark-text: #e8e0d4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header .logo {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: .5px;
}
.site-header .logo a { color: var(--gold); text-decoration: none; }
.site-logo-img { max-height: 50px; width: auto; display: block; }
.site-header nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}
.site-header nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s;
}
.site-header nav a:hover { color: var(--gold); }
.site-header .cta-btn {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  font-size: .95rem;
  display: inline-block;
}
.menu-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO — Opzione A Full-bleed video (APPROVATA CEO 2026-07-29) ===== */
.hero-video {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--cream);
  /* Fallback background visibile subito, prima del video */
  background: #1a1a1a url('/wp-content/uploads/sites/4/2026/07/2026-07-28-hero-pasta.jpg') center/cover no-repeat;
}
.hero-video__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Fallback: se il video non c'è, mostra il poster (gestito da attribute poster=) */
  background: #1a1a1a url('/wp-content/uploads/sites/4/2026/07/2026-07-28-hero-pasta.jpg') center/cover no-repeat;
}
/* Quando il video ha caricato, il poster del video prende il sopravvento */
.hero-video--loaded .hero-video__bg {
  background: transparent;
}
.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.45) 0%, rgba(26,26,26,0.78) 100%);
  z-index: 2;
}
.hero-video__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-video__content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.2;
  color: var(--cream);
}
.hero-video__content .subtitle {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 35px;
  line-height: 1.7;
  opacity: .95;
}
.hero-video__content .ctas { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.hero-video__content .btn-primary {
  background: var(--gold);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all .2s;
  border: 1px solid var(--gold);
}
.hero-video__content .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.hero-video__content .btn-secondary {
  background: transparent;
  color: var(--cream);
  padding: 14px 32px;
  border: 2px solid var(--cream);
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background .2s;
}
.hero-video__content .btn-secondary:hover { background: rgba(255,255,255,.1); }
.hero-video__content .btn-tertiary {
  background: transparent;
  color: var(--gold);
  padding: 14px 32px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all .2s;
}
.hero-video__content .btn-tertiary:hover { background: var(--gold); color: var(--bg); transform: translateY(-2px); }
.hero-video__content .microcopy { margin-top: 25px; font-size: .9rem; opacity: .7; }

/* Legacy hero (fallback if video not supported) */
.hero {
  background: linear-gradient(rgba(26,26,26,.88), rgba(26,26,26,.78)), url('assets/hero-bg.jpg') center/cover;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--cream);
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.2;
  max-width: 800px;
  color: var(--cream);
}
.hero .subtitle {
  font-size: 1.15rem;
  max-width: 650px;
  margin-bottom: 35px;
  line-height: 1.7;
  opacity: .95;
}
.hero .ctas { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.hero .btn-primary {
  background: var(--gold);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: transform .2s;
}
.hero .btn-primary:hover { transform: translateY(-2px); }
.hero .btn-secondary {
  background: transparent;
  color: var(--cream);
  padding: 14px 32px;
  border: 2px solid var(--cream);
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background .2s;
}
.hero .btn-secondary:hover { background: rgba(255,255,255,.1); }
.hero .microcopy { margin-top: 25px; font-size: .9rem; opacity: .7; }

/* ===== SECTIONS ===== */
.section { padding: 70px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2rem; color: var(--bg); margin-bottom: 10px; font-style: italic; }
.section-title p { color: var(--light); font-size: 1.05rem; }

/* ===== CREDO GRID ===== */
.credo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.credo-box {
  background: var(--white);
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  border-top: 4px solid var(--gold);
}
.credo-box h3 { color: var(--bg); font-size: 1.45rem; margin-bottom: 6px; font-style: italic; letter-spacing: .02em; }
.credo-box .credo-subtitle { color: var(--gold); font-size: .98rem; font-style: italic; margin-bottom: 16px; font-weight: 600; }
.credo-box p { color: var(--text); font-size: .98rem; line-height: 1.65; }

/* ===== PRENOTA GOLD BUTTON IN NAV MENU ===== */
.site-header nav .menu-item-object-page > a[href*="/prenota"],
.site-header nav .menu-item-object-page > a[href*="/reserv"],
.site-header nav .menu-item-object-page > a[href*="/book"],
.site-header nav .menu-item-object-page > a[href*="/reservation"] {
  background: var(--gold);
  color: var(--bg) !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  transition: background .2s, transform .2s;
}
.site-header nav .menu-item-object-page > a[href*="/prenota"]:hover,
.site-header nav .menu-item-object-page > a[href*="/reserv"]:hover,
.site-header nav .menu-item-object-page > a[href*="/book"]:hover,
.site-header nav .menu-item-object-page > a[href*="/reservation"]:hover {
  background: var(--gold-light);
  color: var(--bg) !important;
  transform: translateY(-1px);
}

/* ===== SECRETS ===== */
.secrets-preview { background: var(--bg); color: var(--cream); padding: 70px 20px; }
.secrets-preview .section-title h2 { color: var(--gold); }
.secrets-preview .section-title p { color: var(--cream); opacity: .8; }
.secrets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.secret-card { background: rgba(255,255,255,.05); padding: 25px; border-radius: 10px; border: 1px solid rgba(200,164,96,.2); }
.secret-card h4 { color: var(--gold); font-size: 1.05rem; margin-bottom: 10px; }
.secret-card p { font-size: .92rem; opacity: .85; line-height: 1.5; }
.secrets-link { text-align: center; margin-top: 40px; }
.secrets-link a { color: var(--gold); font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

/* ===== PAGE HEADER ===== */
.page-header { background: var(--bg); color: var(--cream); padding: 80px 20px 60px; text-align: center; }
.page-header h1 { font-size: 2.5rem; color: var(--gold); font-style: italic; margin-bottom: 15px; }
.page-header p { max-width: 650px; margin: 0 auto; opacity: .85; font-size: 1.1rem; line-height: 1.7; }

/* ===== CONTENT ===== */
.page-content { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.page-content h2 { color: var(--bg); font-size: 1.6rem; font-style: italic; margin: 40px 0 15px; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { font-size: 1.05rem; margin-bottom: 20px; color: var(--text); }
.page-content strong { color: var(--bg); }

/* ===== SECRETS LIST ===== */
.secrets-list { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.secrets-list .secret { margin-bottom: 45px; padding-bottom: 35px; border-bottom: 1px solid rgba(61,42,30,.1); }
.secrets-list .secret:last-child { border-bottom: none; }
.secrets-list .secret h2 { color: var(--bg); font-size: 1.4rem; font-style: italic; margin-bottom: 12px; }
.secrets-list .secret p { font-size: 1.02rem; line-height: 1.7; }

/* ===== GALLERY ===== */
.gallery-page { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}
.gallery-item {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  overflow: hidden;
  position: relative;
  break-inside: avoid;
}
.gallery-item .placeholder,
.gallery-item video,
.gallery-item .video-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg), var(--gold));
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 3rem;
  font-style: italic;
  overflow: hidden;
  object-fit: cover;
}
.gallery-item video { object-fit: cover; background: var(--bg); }

/* Video wrapper — positioning context for floating logo */
.gallery-item .video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background: var(--bg);
}
.gallery-item .video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Floating logo overlay — bottom-right, semi-transparent */
.gallery-float-logo {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 10%;
  max-width: 80px;
  min-width: 32px;
  height: auto;
  opacity: 0.75;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-float-logo {
  opacity: 0.9;
}

.gallery-item h3 { color: var(--bg); font-size: 1.15rem; margin-bottom: 8px; font-style: italic; }
.gallery-item p { color: var(--light); font-size: .95rem; line-height: 1.6; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== BOOKING ===== */
.booking-content { max-width: 800px; margin: 0 auto; padding: 50px 20px; }
.booking-info { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.06); margin-bottom: 30px; text-align: center; }
.booking-info h2 { color: var(--bg); font-size: 1.3rem; margin-bottom: 15px; font-style: italic; }
.booking-info p { color: var(--light); margin-bottom: 8px; }
.booking-info .phone { font-size: 1.3rem; color: var(--bg); font-weight: bold; margin: 15px 0; }
.booking-iframe { width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.08); position: relative; }
.booking-iframe iframe { width: 100%; height: 750px; border: none; display: block; }
.booking-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  color: var(--text);
  font-size: 1.1rem;
  z-index: 2;
}
.booking-fallback p { margin-bottom: 10px; }
.booking-iframe .iframe-loaded ~ .booking-fallback { display: none; }

/* ===== CTA ===== */
.cta-section { text-align: center; padding: 80px 20px; background: var(--cream); }
.cta-section h2 { font-size: 2rem; color: var(--bg); margin-bottom: 20px; font-style: italic; }
.cta-section p { color: var(--light); max-width: 550px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-section .btn { background: var(--bg); color: var(--gold); padding: 16px 40px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: transform .2s; display: inline-block; }
.cta-section .btn:hover { transform: translateY(-2px); }
.cta-section.dark { background: var(--bg); color: var(--cream); }
.cta-section.dark h2 { color: var(--gold); }
.cta-section.dark p { color: var(--cream); opacity: .8; }
.cta-section.dark .btn { background: var(--gold); color: var(--bg); }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg); color: var(--cream); padding: 50px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer-grid h4 { color: var(--gold); margin-bottom: 12px; font-size: 1rem; }
.footer-grid p, .footer-grid a { color: var(--cream); opacity: .8; font-size: .9rem; text-decoration: none; display: block; margin-bottom: 5px; }
.footer-grid a:hover { opacity: 1; }
.footer-tagline { text-align: center; margin-top: 40px; padding-top: 25px; border-top: 1px solid rgba(200,164,96,.2); font-style: italic; color: var(--gold); opacity: .8; font-size: .9rem; }
.footer-legal { text-align: center; margin-top: 15px; font-size: .8rem; opacity: .5; }

/* ===== BLOG ===== */
.blog-list { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.blog-post-card { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.06); margin-bottom: 25px; border-left: 4px solid var(--gold); }
.blog-post-card h2 { color: var(--bg); font-size: 1.4rem; font-style: italic; margin-bottom: 10px; }
.blog-post-card h2 a { color: var(--bg); text-decoration: none; }
.blog-post-card h2 a:hover { color: var(--gold); }
.blog-post-card .post-meta { color: var(--light); font-size: .85rem; margin-bottom: 15px; }
.blog-post-card .post-excerpt { font-size: 1rem; line-height: 1.6; }
.single-post-content { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.single-post-content h1 { color: var(--bg); font-size: 2.2rem; font-style: italic; margin-bottom: 15px; }
.single-post-content .post-meta { color: var(--light); font-size: .9rem; margin-bottom: 30px; }
.single-post-content p { font-size: 1.05rem; margin-bottom: 20px; line-height: 1.7; }

/* ===== CREDO/SECRET IMAGES ===== */
.credo-box .credo-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.secret-card .secret-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  border: 1px solid rgba(200,164,96,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-video__content h1 { font-size: 2rem; }
  .hero-video__content .subtitle { font-size: 1rem; }
  .hero-video { min-height: 85vh; }
  .hero h1 { font-size: 2rem; }
  .credo-grid { grid-template-columns: 1fr; }
  .site-header { padding: 10px 15px; flex-wrap: wrap; }
  .site-header .logo { font-size: 1.1rem; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    background: var(--bg);
    padding: 10px 0;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(200,164,96,.15);
    font-size: 1rem;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.cta-btn {
    margin: 10px 20px;
    display: inline-block;
    border-bottom: none;
  }
  .page-header h1 { font-size: 1.8rem; }
  .booking-iframe iframe { height: 600px; }
}

/* ===== REDUCED MOTION — Accessibilità ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-video__bg { display: none; }
  .hero-video { background: #1a1a1a; }
}

/* ===== SPEC V3 — CPT SEGRETI ARCHIVE ===== */
.segreti-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.segreti-archive-grid .segreto-card {
  background: var(--white);
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.segreti-archive-grid .segreto-card .segreto-icona {
  font-size: 2rem;
  line-height: 1;
}
.segreti-archive-grid .segreto-card .segreto-categoria {
  font-size: .75rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: sans-serif;
}
.segreti-archive-grid .segreto-card .segreto-titolo {
  font-size: 1.15rem;
  color: var(--bg);
  font-style: italic;
  margin: 6px 0;
}
.segreti-archive-grid .segreto-card .segreto-titolo a { color: var(--bg); text-decoration: none; }
.segreti-archive-grid .segreto-card .segreto-titolo a:hover { color: var(--gold); }
.segreti-archive-grid .segreto-card .segreto-estratto {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text);
  flex-grow: 1;
}
.segreti-archive-grid .segreto-card .segreto-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  font-size: .9rem;
  margin-top: 10px;
}
.segreti-vuoto {
  text-align: center;
  padding: 80px 20px;
  color: var(--light);
  font-style: italic;
}

/* ===== SINGLE SEGRETO ===== */
.pes-segreto-single { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.pes-segreto-single .segreto-article {
  background: var(--white);
  padding: 50px 45px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  border-top: 4px solid var(--gold);
}
.pes-segreto-single .segreto-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}
.pes-segreto-single .segreto-icona { font-size: 2.5rem; line-height: 1; }
.pes-segreto-single .segreto-categoria {
  font-size: .8rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: sans-serif;
}
.pes-segreto-single .segreto-titolo {
  font-size: 2rem;
  color: var(--bg);
  font-style: italic;
  margin-bottom: 25px;
  line-height: 1.25;
}
.pes-segreto-single .segreto-contenuto p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}
.pes-segreto-single .segreto-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(61,42,30,.1);
  gap: 15px;
  flex-wrap: wrap;
}
.pes-segreto-single .segreto-nav a {
  color: var(--gold);
  text-decoration: none;
  font-size: .95rem;
  font-style: italic;
}

/* ===== MENU DEL GIORNO ===== */
.pes-menu-giorno { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.pes-menu-giorno .menu-giorno-title { font-size: 2rem; color: var(--bg); font-style: italic; text-align: center; margin-bottom: 40px; }
.pes-menu-giorno .menu-vuoto { text-align: center; padding: 40px; color: var(--light); font-style: italic; }
.pes-menu-giorno .menu-oggi { margin-bottom: 50px; }
.pes-menu-giorno .menu-oggi-giorno {
  font-size: 1.4rem;
  color: var(--bg);
  font-style: italic;
  text-align: center;
  margin-bottom: 25px;
}
.pes-menu-giorno .menu-oggi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pes-menu-giorno .menu-oggi-card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  border-top: 3px solid var(--gold);
  text-align: center;
}
.pes-menu-giorno .menu-cat-title {
  font-size: .8rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: sans-serif;
  margin-bottom: 12px;
}
.pes-menu-giorno .menu-cat-nome {
  font-size: 1.1rem;
  color: var(--bg);
  font-style: italic;
  margin-bottom: 8px;
}
.pes-menu-giorno .menu-cat-desc { font-size: .9rem; color: var(--text); line-height: 1.5; }
.pes-menu-giorno .menu-settimana-title {
  font-size: 1.5rem;
  color: var(--bg);
  font-style: italic;
  text-align: center;
  margin-bottom: 25px;
}
.pes-menu-giorno .menu-settimana-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.pes-menu-giorno .menu-settimana-day {
  background: var(--white);
  padding: 20px 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.pes-menu-giorno .menu-day-name {
  font-size: 1rem;
  color: var(--bg);
  font-style: italic;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.pes-menu-giorno .menu-day-cat {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}
.pes-menu-giorno .menu-day-cat strong { color: var(--light); font-family: sans-serif; text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; }

/* ===== MENU RISTORANTE ===== */
.pes-menu-ristorante { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.pes-menu-ristorante .menu-vuoto { text-align: center; padding: 40px; color: var(--light); font-style: italic; }
.pes-menu-ristorante .menu-gruppo { margin-bottom: 60px; }
.pes-menu-ristorante .menu-gruppo-name {
  font-size: 2rem;
  color: var(--gold);
  font-style: italic;
  text-align: center;
  margin-bottom: 35px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--gold);
}
.pes-menu-ristorante .menu-categoria { margin-bottom: 45px; }
.pes-menu-ristorante .menu-cat-name {
  font-size: 1.5rem;
  color: var(--bg);
  font-style: italic;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.pes-menu-ristorante .menu-voci-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pes-menu-ristorante .menu-voce {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dotted rgba(61,42,30,.12);
}
.pes-menu-ristorante .menu-voce .voce-nome {
  font-size: 1.05rem;
  color: var(--bg);
  font-style: italic;
}
.pes-menu-ristorante .menu-voce .voce-desc {
  font-size: .9rem;
  color: var(--light);
  grid-column: 1;
  line-height: 1.5;
  margin-top: 4px;
}
.pes-menu-ristorante .menu-voce .voce-prezzo {
  font-size: 1.05rem;
  color: var(--bg);
  font-weight: bold;
  text-align: right;
  white-space: nowrap;
}

/* ===== RECENSIONI & RICONOSCIMENTI ===== */
.section-recensioni { background: var(--cream); padding: 70px 20px; }
.section-recensioni .container { max-width: 1200px; margin: 0 auto; }
.section-recensioni .section-header { text-align: center; margin-bottom: 50px; }
.section-recensioni .eyebrow {
  font-size: .8rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-family: sans-serif;
  margin-bottom: 10px;
}
.section-recensioni .section-title-h2 { font-size: 2rem; color: var(--bg); font-style: italic; }
.google-reviews { margin-bottom: 50px; }
.google-rating-summary {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.google-rating-summary .rating-score { font-size: 3.5rem; color: var(--gold); font-weight: bold; line-height: 1; }
.google-rating-summary .rating-stars { color: var(--gold); font-size: 1.4rem; margin: 10px 0; letter-spacing: 4px; }
.google-rating-summary .rating-count { color: var(--light); font-size: .95rem; }
.google-rating-summary .google-link { display: inline-block; margin-top: 15px; color: var(--gold); text-decoration: none; font-size: .9rem; }
.google-rating-summary .google-link:hover { text-decoration: underline; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  border-top: 3px solid var(--gold);
}
.review-card .review-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 12px; }
.review-card .review-text { font-size: 1rem; color: var(--text); line-height: 1.65; font-style: italic; margin-bottom: 15px; }
.review-card .review-author { font-size: .9rem; color: var(--bg); font-weight: bold; }
.review-card .review-date { font-size: .8rem; color: var(--light); margin-top: 4px; }
.riconoscimenti { margin-top: 40px; }
.riconoscimenti-title { font-size: 1.5rem; color: var(--bg); font-style: italic; text-align: center; margin-bottom: 30px; }
.riconoscimenti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.riconoscimento-card {
  background: var(--white);
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  text-align: center;
}
.riconoscimento-card .riconoscimento-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  font-style: italic;
}
.riconoscimento-card .riconoscimento-nome { font-size: .95rem; color: var(--bg); font-weight: bold; margin-bottom: 5px; }
.riconoscimento-card .riconoscimento-anno { font-size: .85rem; color: var(--light); }

/* ===== BUG C OPZIONE 1 — DUAL LINK NAV ===== */
.section-preview-link {
  text-align: center;
  margin-top: 30px;
}
.section-preview-link a {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  font-size: .95rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* ===== FIX CREDO BOX ALTEZZA ===== */
.credo-box { min-height: auto; }

@media (max-width: 768px) {
  .pes-menu-giorno .menu-oggi-grid { grid-template-columns: 1fr; }
  .pes-menu-giorno .menu-settimana-grid { grid-template-columns: 1fr; }
  .pes-menu-ristorante .menu-voce { grid-template-columns: 1fr; }
  .pes-menu-ristorante .menu-voce .voce-prezzo { text-align: left; }
  .reviews-grid { grid-template-columns: 1fr; }
  .segreti-archive-grid { grid-template-columns: 1fr; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid rgba(200,164,96,.3);
  flex-wrap: wrap;
}
.lang-switcher .lang-link {
  color: var(--cream);
  text-decoration: none;
  font-size: .8rem;
  padding: 4px 8px;
  border-radius: 3px;
  transition: all .2s;
  font-family: sans-serif;
  letter-spacing: .05em;
  opacity: .7;
}
.lang-switcher .lang-link:hover,
.lang-switcher .lang-link.active {
  color: var(--gold);
  background: rgba(200,164,96,.1);
  opacity: 1;
}
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    justify-content: center;
    padding: 10px 20px;
    border-top: 1px solid rgba(200,164,96,.15);
  }
}

/* ===== SINGLE MENU DEL GIORNO ===== */
.pes-menu-giorno .pes-menu-content { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.pes-menu-giorno .menu-oggi { margin-bottom: 60px; }
.pes-menu-giorno .menu-oggi-giorno { font-size: 1.5rem; color: var(--bg); font-style: italic; text-align: center; margin-bottom: 30px; }
.pes-menu-giorno .menu-oggi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.pes-menu-giorno .menu-oggi-card { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.06); border-top: 4px solid var(--gold); text-align: center; }
.pes-menu-giorno .menu-cat-title { font-size: .85rem; color: var(--light); text-transform: uppercase; letter-spacing: .15em; font-family: sans-serif; margin-bottom: 15px; }
.pes-menu-giorno .menu-cat-nome { font-size: 1.2rem; color: var(--bg); font-style: italic; margin-bottom: 10px; }
.pes-menu-giorno .menu-cat-desc { font-size: .95rem; color: var(--text); line-height: 1.6; }

.pes-menu-giorno .menu-settimana { margin-bottom: 60px; }
.pes-menu-giorno .menu-settimana-title { font-size: 1.5rem; color: var(--bg); font-style: italic; text-align: center; margin-bottom: 30px; }
.pes-menu-giorno .menu-settimana-tabella { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.pes-menu-giorno .menu-settimana-tabella thead th { background: var(--bg); color: var(--gold); padding: 15px 12px; font-style: italic; font-size: .95rem; text-align: center; }
.pes-menu-giorno .menu-settimana-tabella thead th:first-child { background: var(--bg-warm); }
.pes-menu-giorno .menu-settimana-tabella tbody th { background: var(--bg-warm); color: var(--gold); padding: 15px 12px; font-style: italic; text-align: left; font-size: .9rem; }
.pes-menu-giorno .menu-settimana-tabella tbody td { padding: 15px 12px; text-align: center; border-bottom: 1px solid rgba(0,0,0,.06); color: var(--text); font-size: .95rem; }
.pes-menu-giorno .menu-settimana-tabella tbody tr:nth-child(even) td { background: rgba(245,235,221,.3); }
.pes-menu-giorno .menu-settimana-tabella .menu-cat-label { text-transform: uppercase; letter-spacing: .1em; font-family: sans-serif; font-size: .8rem; }

.pes-menu-giorno .menu-descrizioni { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.pes-menu-giorno .menu-giorno-descrizione { background: var(--white); padding: 25px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.pes-menu-giorno .menu-giorno-descrizione h3 { color: var(--bg); font-size: 1.1rem; font-style: italic; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.pes-menu-giorno .menu-giorno-piatto { font-size: .95rem; margin-bottom: 8px; line-height: 1.5; }
.pes-menu-giorno .piatto-categoria { color: var(--light); font-family: sans-serif; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
.pes-menu-giorno .piatto-nome { color: var(--bg); font-weight: bold; }
.pes-menu-giorno .piatto-desc { color: var(--text); }

/* ===== ARCHIVE MENU RISTORANTE ===== */
.pes-menu-ristorante .pes-menu-content { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.pes-menu-ristorante .menu-categoria { margin-bottom: 50px; }
.pes-menu-ristorante .menu-cat-name { font-size: 1.6rem; color: var(--bg); font-style: italic; margin-bottom: 25px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.pes-menu-ristorante .menu-voci-list { display: flex; flex-direction: column; gap: 0; }
.pes-menu-ristorante .menu-voce { padding: 18px 0; border-bottom: 1px dotted rgba(61,42,30,.15); }
.pes-menu-ristorante .menu-voce:last-child { border-bottom: none; }
.pes-menu-ristorante .voce-header { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 6px; }
.pes-menu-ristorante .voce-nome { font-size: 1.1rem; color: var(--bg); font-style: italic; }
.pes-menu-ristorante .voce-prezzo { font-size: 1.1rem; color: var(--bg); font-weight: bold; white-space: nowrap; }
.pes-menu-ristorante .voce-desc { font-size: .95rem; color: var(--light); line-height: 1.6; margin-bottom: 6px; }
.pes-menu-ristorante .voce-allergeni { font-size: .8rem; color: var(--light); }
.pes-menu-ristorante .allergeni-label { text-transform: uppercase; letter-spacing: .1em; font-family: sans-serif; font-size: .7rem; }
.pes-menu-ristorante .menu-vuoto { text-align: center; padding: 80px 20px; color: var(--light); font-style: italic; }

@media (max-width: 768px) {
  .pes-menu-giorno .menu-oggi-grid { grid-template-columns: 1fr; }
  .pes-menu-giorno .menu-descrizioni { grid-template-columns: 1fr; }
  .pes-menu-giorno .menu-settimana-tabella { font-size: .85rem; }
  .pes-menu-giorno .menu-settimana-tabella thead th, .pes-menu-giorno .menu-settimana-tabella tbody th, .pes-menu-giorno .menu-settimana-tabella tbody td { padding: 10px 8px; }
  .pes-menu-ristorante .voce-header { flex-direction: column; gap: 5px; }
  .pes-menu-ristorante .voce-prezzo { text-align: left; }
}

/* ===== LOVELYCUSTOMER — INGREDIENT DROP ANIMATION V2 ===== */
/* Animation: 3 credo-box elements fall from high above, pass through the logo "padella" (which pulses), then settle into grid */

/* Padella container — centered logo with golden aura */
.lc-padella {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 40px;
  width: 160px;
  height: 160px;
  z-index: 10;
}
.lc-padella::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,96,0.3) 0%, rgba(200,164,96,0.08) 50%, transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.lc-padella.is-pulsing::before {
  animation: lc-padella-pulse-strong 1s ease-out;
}
.lc-padella img {
  max-width: 140px;
  max-height: 140px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(200,164,96,0.4));
  transition: transform .3s ease;
}
.lc-padella.is-pulsing img {
  animation: lc-padella-bounce-strong 0.8s ease-out;
}

/* Strong padella bounce — logo reacts visibly */
@keyframes lc-padella-bounce-strong {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3) translateY(-14px); }
  45% { transform: scale(0.82) translateY(6px); }
  65% { transform: scale(1.12) translateY(-4px); }
  85% { transform: scale(0.98) translateY(1px); }
}

/* Strong aura — expands and fades */
@keyframes lc-padella-pulse-strong {
  0% { transform: scale(1); opacity: 0; }
  25% { transform: scale(1.5); opacity: 1; }
  55% { transform: scale(2.1); opacity: 0.4; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Credo grid — positioning context for animation */
.lc-benefits-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* Credo box — initial state for animation */
.lc-benefits-grid .credo-box {
  opacity: 0;
  will-change: transform, opacity;
  position: relative;
}
.lc-benefits-grid.is-ready .credo-box {
  opacity: 1;
}

/* Phase 1: ingredients fall from high above through the logo, then settle */
.lc-benefits-grid.is-dropping .credo-box:nth-child(1) {
  animation: lc-drop-1 1.8s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
.lc-benefits-grid.is-dropping .credo-box:nth-child(2) {
  animation: lc-drop-2 1.8s cubic-bezier(0.34, 1.4, 0.64, 1) 0.2s forwards;
}
.lc-benefits-grid.is-dropping .credo-box:nth-child(3) {
  animation: lc-drop-3 1.8s cubic-bezier(0.34, 1.4, 0.64, 1) 0.4s forwards;
}

/* Box 1: falls from top-left, passes through logo center, bounces out to final position */
@keyframes lc-drop-1 {
  0% {
    opacity: 0;
    transform: scale(0.2) translate(-220px, -420px) rotate(-25deg);
  }
  20% {
    opacity: 1;
    transform: scale(0.35) translate(-140px, -280px) rotate(-15deg);
  }
  40% {
    opacity: 1;
    transform: scale(0.45) translate(-50px, -120px) rotate(-8deg);
  }
  55% {
    /* Arrives at logo center — impact */
    opacity: 1;
    transform: scale(0.55) translate(0, 0) rotate(0deg);
  }
  70% {
    /* Bounces out of the logo toward final position */
    opacity: 1;
    transform: scale(0.85) translate(-60px, -30px) rotate(-3deg);
  }
  85% {
    opacity: 1;
    transform: scale(0.98) translate(-10px, -5px) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
}

/* Box 2: falls straight down from top-center through the logo */
@keyframes lc-drop-2 {
  0% {
    opacity: 0;
    transform: scale(0.2) translate(0, -450px) rotate(12deg);
  }
  20% {
    opacity: 1;
    transform: scale(0.35) translate(0, -300px) rotate(8deg);
  }
  40% {
    opacity: 1;
    transform: scale(0.45) translate(0, -140px) rotate(4deg);
  }
  55% {
    /* Arrives at logo center — impact */
    opacity: 1;
    transform: scale(0.55) translate(0, 0) rotate(0deg);
  }
  70% {
    /* Bounces out of the logo toward final position */
    opacity: 1;
    transform: scale(0.85) translate(0, -30px) rotate(2deg);
  }
  85% {
    opacity: 1;
    transform: scale(0.98) translate(0, -5px) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
}

/* Box 3: falls from top-right, passes through logo center, bounces out to final position */
@keyframes lc-drop-3 {
  0% {
    opacity: 0;
    transform: scale(0.2) translate(220px, -420px) rotate(25deg);
  }
  20% {
    opacity: 1;
    transform: scale(0.35) translate(140px, -280px) rotate(15deg);
  }
  40% {
    opacity: 1;
    transform: scale(0.45) translate(50px, -120px) rotate(8deg);
  }
  55% {
    /* Arrives at logo center — impact */
    opacity: 1;
    transform: scale(0.55) translate(0, 0) rotate(0deg);
  }
  70% {
    /* Bounces out of the logo toward final position */
    opacity: 1;
    transform: scale(0.85) translate(60px, -30px) rotate(3deg);
  }
  85% {
    opacity: 1;
    transform: scale(0.98) translate(10px, -5px) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
}

/* Phase 2: hover animation (after entrance complete) */
.lc-benefits-grid.is-ready .credo-box {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}
.lc-benefits-grid.is-ready .credo-box:hover {
  transform: translateY(-6px) scale(1.04) rotate(-1.5deg);
  box-shadow: 0 12px 32px rgba(200,164,96,0.2), 0 4px 12px rgba(0,0,0,0.1);
}
.lc-benefits-grid.is-ready .credo-box:nth-child(2):hover {
  transform: translateY(-6px) scale(1.04) rotate(1.5deg);
}
.lc-benefits-grid.is-ready .credo-box:nth-child(3):hover {
  transform: translateY(-6px) scale(1.04) rotate(-1deg);
}

/* Subtle gold glow on hover */
.lc-benefits-grid.is-ready .credo-box:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200,164,96,0.08), transparent);
  pointer-events: none;
  opacity: 0;
  animation: lc-glow-fade 0.3s ease forwards;
}
@keyframes lc-glow-fade {
  to { opacity: 1; }
}

/* Mobile: simpler — skip entrance on touch, keep hover-like tap feedback */
@media (max-width: 768px) {
  .lc-padella {
    width: 110px;
    height: 110px;
    margin-bottom: 30px;
  }
  .lc-padella img {
    max-width: 90px;
    max-height: 90px;
  }
  .lc-benefits-grid .credo-box {
    opacity: 1; /* visible immediately on mobile */
  }
  .lc-benefits-grid.is-dropping .credo-box:nth-child(1),
  .lc-benefits-grid.is-dropping .credo-box:nth-child(2),
  .lc-benefits-grid.is-dropping .credo-box:nth-child(3) {
    animation: none;
  }
  .lc-benefits-grid.is-ready .credo-box:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Reduced motion: disable all animations */
@media (prefers-reduced-motion: reduce) {
  .lc-benefits-grid .credo-box {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .lc-benefits-grid.is-ready .credo-box:hover {
    transform: none;
  }
  .lc-padella::before,
  .lc-padella.is-pulsing::before,
  .lc-padella.is-pulsing img {
    animation: none !important;
    opacity: 0;
  }
  .lc-padella img {
    transform: none !important;
  }
}

/* ===== CREDO HOMEPAGE — FLUID DROP ANIMATION V2 ===== */
/* 6 credo-box elements fall smoothly from above into their grid positions — no logo, no bounce, elegant */

/* Grid — positioning context */
.credo-grid {
  position: relative;
}
.credo-section .credo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  align-items: start;
}

/* Credo box — initial state for animation */
.credo-section .credo-grid .credo-box {
  opacity: 0;
  will-change: transform, opacity;
  position: relative;
}
.credo-section .credo-grid.is-ready .credo-box {
  opacity: 1;
}

/* Phase 1: 6 boxes fall smoothly from above — fluid, no bounce */
.credo-section .credo-grid.is-dropping .credo-box:nth-child(1) {
  animation: credo-drop-1 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.credo-section .credo-grid.is-dropping .credo-box:nth-child(2) {
  animation: credo-drop-2 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.12s forwards;
}
.credo-section .credo-grid.is-dropping .credo-box:nth-child(3) {
  animation: credo-drop-3 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.24s forwards;
}
.credo-section .credo-grid.is-dropping .credo-box:nth-child(4) {
  animation: credo-drop-4 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.36s forwards;
}
.credo-section .credo-grid.is-dropping .credo-box:nth-child(5) {
  animation: credo-drop-5 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.48s forwards;
}
.credo-section .credo-grid.is-dropping .credo-box:nth-child(6) {
  animation: credo-drop-6 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.60s forwards;
}

/* Box 1: falls from top-left, gentle rotation */
@keyframes credo-drop-1 {
  0% { opacity: 0; transform: scale(0.3) translate(-180px, -400px) rotate(-8deg); }
  30% { opacity: 1; transform: scale(0.5) translate(-80px, -200px) rotate(-4deg); }
  60% { opacity: 1; transform: scale(0.85) translate(-15px, -40px) rotate(-1deg); }
  85% { opacity: 1; transform: scale(0.98) translate(-2px, -5px) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Box 2: falls from top-center-left */
@keyframes credo-drop-2 {
  0% { opacity: 0; transform: scale(0.3) translate(-60px, -420px) rotate(-5deg); }
  30% { opacity: 1; transform: scale(0.5) translate(-25px, -210px) rotate(-2deg); }
  60% { opacity: 1; transform: scale(0.85) translate(-5px, -40px) rotate(0deg); }
  85% { opacity: 1; transform: scale(0.98) translate(-1px, -5px) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Box 3: falls from top-center-right */
@keyframes credo-drop-3 {
  0% { opacity: 0; transform: scale(0.3) translate(60px, -420px) rotate(5deg); }
  30% { opacity: 1; transform: scale(0.5) translate(25px, -210px) rotate(2deg); }
  60% { opacity: 1; transform: scale(0.85) translate(5px, -40px) rotate(0deg); }
  85% { opacity: 1; transform: scale(0.98) translate(1px, -5px) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Box 4: falls from top-right */
@keyframes credo-drop-4 {
  0% { opacity: 0; transform: scale(0.3) translate(180px, -400px) rotate(8deg); }
  30% { opacity: 1; transform: scale(0.5) translate(80px, -200px) rotate(4deg); }
  60% { opacity: 1; transform: scale(0.85) translate(15px, -40px) rotate(1deg); }
  85% { opacity: 1; transform: scale(0.98) translate(2px, -5px) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Box 5: falls from top-far-left */
@keyframes credo-drop-5 {
  0% { opacity: 0; transform: scale(0.3) translate(-200px, -440px) rotate(-7deg); }
  30% { opacity: 1; transform: scale(0.5) translate(-90px, -220px) rotate(-3deg); }
  60% { opacity: 1; transform: scale(0.85) translate(-18px, -45px) rotate(-1deg); }
  85% { opacity: 1; transform: scale(0.98) translate(-3px, -5px) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Box 6: falls from top-far-right */
@keyframes credo-drop-6 {
  0% { opacity: 0; transform: scale(0.3) translate(200px, -440px) rotate(7deg); }
  30% { opacity: 1; transform: scale(0.5) translate(90px, -220px) rotate(3deg); }
  60% { opacity: 1; transform: scale(0.85) translate(18px, -45px) rotate(1deg); }
  85% { opacity: 1; transform: scale(0.98) translate(3px, -5px) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* Phase 2: elegant hover (after entrance complete) — credo-box */
.credo-section .credo-grid.is-ready .credo-box {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.credo-section .credo-grid.is-ready .credo-box:hover {
  transform: translateY(-4px) scale(1.03) rotate(-0.8deg);
  box-shadow: 0 8px 24px rgba(200,164,96,0.12), 0 4px 12px rgba(0,0,0,0.06);
}
.credo-section .credo-grid.is-ready .credo-box:nth-child(2):hover {
  transform: translateY(-4px) scale(1.03) rotate(0.8deg);
}
.credo-section .credo-grid.is-ready .credo-box:nth-child(3):hover {
  transform: translateY(-4px) scale(1.03) rotate(-0.5deg);
}
.credo-section .credo-grid.is-ready .credo-box:nth-child(4):hover {
  transform: translateY(-4px) scale(1.03) rotate(0.8deg);
}
.credo-section .credo-grid.is-ready .credo-box:nth-child(5):hover {
  transform: translateY(-4px) scale(1.03) rotate(-0.5deg);
}
.credo-section .credo-grid.is-ready .credo-box:nth-child(6):hover {
  transform: translateY(-4px) scale(1.03) rotate(0.8deg);
}

/* Subtle gold glow on hover — credo-box */
.credo-section .credo-grid.is-ready .credo-box:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200,164,96,0.05), transparent);
  pointer-events: none;
  opacity: 0;
  animation: credo-glow-fade 0.4s ease forwards;
}
@keyframes credo-glow-fade {
  to { opacity: 1; }
}

/* Phase 3: elegant hover — secret-card (same style as credo-box) */
.secrets-preview .secret-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.secrets-preview .secret-card:hover {
  transform: translateY(-4px) scale(1.03) rotate(-0.8deg);
  box-shadow: 0 8px 24px rgba(200,164,96,0.15), 0 4px 12px rgba(0,0,0,0.1);
}
.secrets-preview .secret-card:nth-child(2):hover {
  transform: translateY(-4px) scale(1.03) rotate(0.8deg);
}

/* Subtle gold glow on hover — secret-card */
.secrets-preview .secret-card:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(200,164,96,0.05), transparent);
  pointer-events: none;
  opacity: 0;
  animation: credo-glow-fade 0.4s ease forwards;
}

/* Mobile: simpler — skip entrance on touch */
@media (max-width: 768px) {
  .credo-section .credo-grid .credo-box {
    opacity: 1;
  }
  .credo-section .credo-grid.is-dropping .credo-box:nth-child(1),
  .credo-section .credo-grid.is-dropping .credo-box:nth-child(2),
  .credo-section .credo-grid.is-dropping .credo-box:nth-child(3),
  .credo-section .credo-grid.is-dropping .credo-box:nth-child(4),
  .credo-section .credo-grid.is-dropping .credo-box:nth-child(5),
  .credo-section .credo-grid.is-dropping .credo-box:nth-child(6) {
    animation: none;
  }
  .credo-section .credo-grid.is-ready .credo-box:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Reduced motion: disable all credo animations */
@media (prefers-reduced-motion: reduce) {
  .credo-section .credo-grid .credo-box {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .credo-section .credo-grid.is-ready .credo-box:hover {
    transform: none;
  }
  .secrets-preview .secret-card:hover {
    transform: none;
  }
}

/* ===== LOVELYCUSTOMER 3-BOX HOMEPAGE ===== */
.lc-homepage-3box {
  padding: 70px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.lc-homepage-3box .section-title { margin-bottom: 50px; }
.lc-homepage-3box__eyebrow {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: sans-serif;
  margin-bottom: 10px;
  font-weight: 600;
}
.lc-homepage-3box .section-title h2 {
  font-size: 2rem;
  color: var(--bg);
  margin-bottom: 10px;
  font-style: italic;
}
.lc-homepage-3box .section-title p {
  color: var(--light);
  font-size: 1.05rem;
}
.lc-box-cta {
  display: inline-block;
  margin-top: 15px;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lc-box-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ===== ETICA PREVIEW ===== */
.etica-preview {
  padding: 70px 20px;
  background: var(--bg);
  color: var(--cream);
  text-align: center;
}
.etica-preview .section-title h2 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 10px;
  font-style: italic;
}
.etica-preview .section-title p {
  color: var(--cream);
  opacity: 0.8;
  font-size: 1.05rem;
}
.etica-preview__content {
  max-width: 700px;
  margin: 0 auto;
}
.etica-preview__text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 25px;
}
.etica-preview__link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: all 0.2s;
}
.etica-preview__link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
  transform: translateY(-1px);
}

/* ===== LOVELYCUSTOMER HOMEPAGE BANNER ===== */
.lc-homepage-banner {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-warm) 100%);
  color: var(--cream);
  padding: 70px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lc-homepage-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,96,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.lc-homepage-banner__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.lc-homepage-banner__eyebrow {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: sans-serif;
  margin-bottom: 15px;
  font-weight: 600;
}
.lc-homepage-banner__title {
  font-size: 2rem;
  color: var(--cream);
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.3;
}
.lc-homepage-banner__sub {
  font-size: 1.05rem;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 35px;
  line-height: 1.7;
}
.lc-homepage-banner__ctas {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.lc-homepage-banner__btn {
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
}
.lc-homepage-banner__btn--primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}
.lc-homepage-banner__btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
.lc-homepage-banner__btn--secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.lc-homepage-banner__btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .lc-homepage-banner {
    padding: 50px 20px;
  }
  .lc-homepage-banner__title {
    font-size: 1.5rem;
  }
  .lc-homepage-banner__sub {
    font-size: 0.95rem;
  }
  .lc-homepage-banner__btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* ===== LOVELYCUSTOMER MENU BUTTONS (header) ===== */
.lc-menu-buttons {
  display: flex;
  gap: 8px;
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid rgba(200,164,96,0.3);
  flex-wrap: wrap;
  align-items: center;
}
.lc-menu-btn {
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: sans-serif;
  letter-spacing: 0.03em;
  display: inline-block;
}
.lc-menu-btn--signup {
  background: var(--gold);
  color: var(--bg) !important;
  border: 1px solid var(--gold);
}
.lc-menu-btn--signup:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}
.lc-menu-btn--signin {
  background: transparent;
  color: var(--cream) !important;
  border: 1px solid rgba(245,235,221,0.4);
}
.lc-menu-btn--signin:hover {
  background: rgba(245,235,221,0.1);
  border-color: var(--cream);
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .lc-menu-buttons {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    justify-content: center;
    padding: 10px 20px;
    border-top: 1px solid rgba(200,164,96,0.15);
    width: 100%;
    order: 2;
  }
  .lc-menu-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===== STRUCTURED MENU WITH DROPDOWN ===== */
.main-nav ul.nav-menu li.menu-item-has-children {
  position: relative;
}
.main-nav ul.nav-menu li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.5;
}
.main-nav ul.nav-menu li.menu-item-has-children > ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  padding: 8px 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1000;
  min-width: 220px;
  list-style: none;
  flex-direction: column;
  gap: 0;
}
.main-nav ul.nav-menu li.menu-item-has-children:hover > ul.sub-menu {
  display: block;
}
.main-nav ul.nav-menu li.menu-item-has-children > ul.sub-menu li {
  width: 100%;
}
.main-nav ul.nav-menu li.menu-item-has-children > ul.sub-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(200,164,96,0.1);
  transition: background 0.2s, color 0.2s;
}
.main-nav ul.nav-menu li.menu-item-has-children > ul.sub-menu li:last-child a {
  border-bottom: none;
}
.main-nav ul.nav-menu li.menu-item-has-children > ul.sub-menu a:hover {
  background: rgba(200,164,96,0.1);
  color: var(--gold);
}
@media (max-width: 768px) {
  .main-nav ul.nav-menu li.menu-item-has-children > ul.sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 100%;
    background: rgba(0,0,0,0.2);
    padding: 0;
  }
  .main-nav ul.nav-menu li.menu-item-has-children.is-open-submenu > ul.sub-menu {
    display: block;
  }
}

/* ===== FLOATING ACTION WIDGET — Prenota / Ordina / LovelyCustomer ===== */
/* Always-on floating button bottom-right, expands to panel with 3 actions.
   Brand: nero #1A1A1A, oro #C8A460, crema #F5EBDD. Accessibile, responsive. */

.pes-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Toggle button — circular, nero with gold border */
.pes-fab__toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 0 0 0 rgba(200,164,96,0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background 0.2s ease;
  position: relative;
  z-index: 2;
}

.pes-fab__toggle:hover {
  background: #2a2a2a;
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,0.4), 0 0 0 4px rgba(200,164,96,0.15);
}

.pes-fab__toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.pes-fab__toggle-icon {
  width: 28px;
  height: 28px;
  display: block;
  transition: transform 0.3s ease;
}

.pes-fab.is-open .pes-fab__toggle-icon {
  transform: rotate(45deg);
}

/* Pulsing aura to attract attention (subtle) */
.pes-fab__toggle::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: pes-fab-pulse 3s ease-out infinite;
  pointer-events: none;
}

@keyframes pes-fab-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Reduced motion — disable pulse */
@media (prefers-reduced-motion: reduce) {
  .pes-fab__toggle::before { animation: none; }
  .pes-fab__toggle { transition: background 0.2s ease; }
  .pes-fab__toggle:hover { transform: none; }
}

/* Panel — expands upward from the toggle */
.pes-fab__panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.92);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
  pointer-events: none;
}

.pes-fab.is-open .pes-fab__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* When widget is open by default (PHP renders is-open class),
   skip the entrance animation on initial page load to avoid layout shift.
   Only animate when user manually toggles (via .pes-fab--animated class added by JS on first interaction). */
.pes-fab:not(.pes-fab--animated) .pes-fab__panel {
  transition: none;
}
.pes-fab:not(.pes-fab--animated).is-open .pes-fab__panel {
  transition: none;
}

/* Backdrop for click-outside close (transparent, full screen) */
.pes-fab__backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: -1;
  display: none;
}

.pes-fab.is-open .pes-fab__backdrop {
  display: block;
}

/* Action button — pill-shaped, nero background, gold accent */
.pes-fab__action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 14px 20px;
  background: var(--bg);
  color: var(--cream);
  border: 1px solid rgba(200,164,96,0.3);
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pes-fab__action::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.pes-fab__action:hover {
  background: #2a2a2a;
  border-color: var(--gold);
  transform: translateX(-4px);
  color: var(--cream);
}

.pes-fab__action:hover::before {
  width: 6px;
}

.pes-fab__action:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.pes-fab__action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200,164,96,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.pes-fab__action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pes-fab__action-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

.pes-fab__action-sub {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Stagger entrance for actions */
.pes-fab.is-open .pes-fab__action:nth-child(1) { animation: pes-fab-action-in 0.3s ease-out 0.05s both; }
.pes-fab.is-open .pes-fab__action:nth-child(2) { animation: pes-fab-action-in 0.3s ease-out 0.12s both; }
.pes-fab.is-open .pes-fab__action:nth-child(3) { animation: pes-fab-action-in 0.3s ease-out 0.19s both; }

@keyframes pes-fab-action-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pes-fab.is-open .pes-fab__action:nth-child(1),
  .pes-fab.is-open .pes-fab__action:nth-child(2),
  .pes-fab.is-open .pes-fab__action:nth-child(3) {
    animation: none;
  }
  .pes-fab__panel { transition: opacity 0.15s ease, visibility 0.15s; transform: none; }
  .pes-fab.is-open .pes-fab__panel { transform: none; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .pes-fab {
    bottom: 16px;
    right: 16px;
  }
  .pes-fab__toggle {
    width: 52px;
    height: 52px;
  }
  .pes-fab__toggle-icon {
    width: 24px;
    height: 24px;
  }
  .pes-fab__panel {
    bottom: 62px;
    right: -4px;
  }
  .pes-fab__action {
    min-width: 200px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .pes-fab__action-icon {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }
  .pes-fab__action-label { font-size: 0.9rem; }
  .pes-fab__action-sub { font-size: 0.7rem; }
}

/* Very small screens — compact panel */
@media (max-width: 380px) {
  .pes-fab__action {
    min-width: 180px;
    padding: 10px 14px;
  }
}

/* Ensure widget doesn't overlap footer legal text on short pages */
@media (max-height: 500px) {
  .pes-fab__panel {
    bottom: 62px;
  }
}