/* ================================================
   IL PRINCIPÀ REVOLUTION — Rustic Sicilian Modern
   Design System & Full Stylesheet
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Palette */
  --flour: #F2E8DC;
  --flour-light: #FAF6F1;
  --wood: #4A2E1F;
  --wood-light: #6B4532;
  --basil: #2F5D3A;
  --basil-light: #3D7A4C;
  --terra: #8B2E1E;
  --terra-light: #A83B28;
  --gold: #D4AF37;
  --gold-light: #E8C94A;
  --charcoal: #1A1A1A;
  --smoke: #333333;
  --ash: #666666;
  --cream: #FFF8F0;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Montserrat', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Sizing */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 80px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.3s;
  --duration-slow: 0.6s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(74, 46, 31, 0.08);
  --shadow-md: 0 4px 20px rgba(74, 46, 31, 0.12);
  --shadow-lg: 0 8px 40px rgba(74, 46, 31, 0.16);
  --shadow-warm: 0 4px 30px rgba(139, 46, 30, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--wood);
  background-color: var(--flour);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--wood);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--smoke);
}

.text-gold { color: var(--gold); }
.text-terra { color: var(--terra); }
.text-basil { color: var(--basil); }
.text-flour { color: var(--flour); }
.text-white { color: var(--white); }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

/* --- Layout --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--lg {
  padding: var(--space-3xl) 0;
}

.section--dark {
  background: var(--charcoal);
  color: var(--flour);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--flour);
}

.section--dark p {
  color: rgba(242, 232, 220, 0.8);
}

.section--wood {
  background: var(--wood);
  color: var(--flour);
}

.section--wood h2,
.section--wood h3 {
  color: var(--flour);
}

.section--wood p {
  color: rgba(242, 232, 220, 0.85);
}

.section--cream {
  background: var(--cream);
}

.section--basil {
  background: var(--basil);
  color: var(--flour);
}

.section--basil h2,
.section--basil h3 {
  color: var(--flour);
}

.section--basil p {
  color: rgba(242, 232, 220, 0.85);
}

.text-center { text-align: center; }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header .subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ash);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: var(--space-sm);
}

.section--dark .section-label,
.section--wood .section-label,
.section--basil .section-label {
  color: var(--gold);
}

/* Decorative divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--terra);
  margin: var(--space-md) auto;
  border-radius: 2px;
}

.section--dark .divider,
.section--wood .divider {
  background: var(--gold);
}

/* ================================================
   HEADER / NAVIGATION
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--duration-slow) var(--ease),
              box-shadow var(--duration-slow) var(--ease),
              padding var(--duration) var(--ease);
  padding: var(--space-sm) 0;
}

.header--transparent {
  background: transparent;
}

.header--solid {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.header__logo img {
  height: 50px;
  width: auto;
  transition: height var(--duration) var(--ease);
}

.header--solid .header__logo img {
  height: 40px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--flour);
  position: relative;
  padding: 0.25rem 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--duration) var(--ease);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav .header__cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold) !important;
  background: transparent;
  padding: 0.75rem 2.2rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-pill);
  transition: all var(--duration) var(--ease);
}

.header__nav .header__cta::after {
  display: none !important;
}

.header__nav .header__cta:hover {
  background: var(--gold);
  color: var(--charcoal) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Mobile menu toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--flour);
  transition: all var(--duration) var(--ease);
  border-radius: 2px;
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  transition: all var(--duration) var(--ease);
  text-transform: uppercase;
  cursor: pointer;
}

.btn--primary {
  background: var(--terra);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--terra-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--flour);
  border: 2px solid var(--flour);
}

.btn--outline:hover {
  background: var(--flour);
  color: var(--wood);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--wood);
  border: 2px solid var(--wood);
}

.btn--outline-dark:hover {
  background: var(--wood);
  color: var(--flour);
  transform: translateY(-2px);
}

.btn--wood {
  background: var(--wood);
  color: var(--flour);
}

.btn--wood:hover {
  background: var(--wood-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  font-size: 0.8rem;
  padding: 0.6rem 1.4rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 1.1rem 2.8rem;
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.4) 0%,
    rgba(26, 26, 26, 0.6) 50%,
    rgba(26, 26, 26, 0.85) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero__logo {
  width: 280px;
  margin: 0 auto var(--space-lg);
}

.hero__catchphrase {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--flour);
  margin-bottom: var(--space-sm);
  font-weight: 600;
  line-height: 1.1;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--flour);
  opacity: 0.7;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- Page Hero (smaller, for inner pages) --- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero--tall {
  min-height: 70vh;
}

.page-hero .hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.5) 0%,
    rgba(26, 26, 26, 0.75) 100%
  );
}

/* ================================================
   TAGLINE / PHILOSOPHY STRIP
   ================================================ */
.tagline {
  background: var(--wood);
  padding: var(--space-lg) 0;
  text-align: center;
}

.tagline__text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--flour);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.tagline__text span {
  color: var(--gold);
}

/* ================================================
   CATEGORY CARDS (Menu Preview)
   ================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform var(--duration) var(--ease);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.category-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--flour);
  font-weight: 600;
}

/* ================================================
   ABOUT PREVIEW (Homepage)
   ================================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-preview__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-preview__content {
  padding: var(--space-md) 0;
}

.about-preview__quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--wood);
  line-height: 1.6;
  margin: var(--space-md) 0;
  padding-left: var(--space-md);
  border-left: 3px solid var(--gold);
}

/* ================================================
   SIGNATURE PIZZA
   ================================================ */
.signature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.signature__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.signature__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.signature__content h3 {
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.signature__ingredients {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ash);
  margin: var(--space-sm) 0 var(--space-md);
  line-height: 1.7;
}

/* ================================================
   FEATURES / VALUES GRID
   ================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.value-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.value-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.value-card h4 {
  margin-bottom: var(--space-xs);
}

.value-card p {
  font-size: 0.95rem;
}

.section--dark .value-card p {
  color: rgba(242, 232, 220, 0.7);
}

/* ================================================
   INSTAGRAM / SOCIAL
   ================================================ */
.social-section {
  text-align: center;
}

/* Video Carousel */
.video-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 50px;
}

.video-carousel .swiper {
  overflow: hidden;
  border-radius: 16px;
}

.video-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 560px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-slide__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.video-slide__badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.video-slide__badge--ig {
  background: linear-gradient(135deg, rgba(131,58,180,0.85), rgba(253,29,29,0.85), rgba(252,176,69,0.85));
}

.video-slide__badge--fb {
  background: rgba(24,119,242,0.85);
}

.video-slide__badge--tk {
  background: linear-gradient(135deg, rgba(37,244,238,0.85), rgba(254,44,85,0.85));
}

/* Swiper Navigation */
.video-carousel .swiper-button-prev,
.video-carousel .swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 232, 220, 0.1);
  backdrop-filter: blur(8px);
  color: var(--flour);
  transition: all var(--duration) var(--ease);
}

.video-carousel .swiper-button-prev:hover,
.video-carousel .swiper-button-next:hover {
  background: var(--gold);
  color: var(--coal);
}

.video-carousel .swiper-button-prev::after,
.video-carousel .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.video-carousel .swiper-button-prev {
  left: 0;
}

.video-carousel .swiper-button-next {
  right: 0;
}

.video-carousel .swiper-pagination-bullet {
  background: rgba(242, 232, 220, 0.4);
  opacity: 1;
}

.video-carousel .swiper-pagination-bullet-active {
  background: var(--gold);
  transform: scale(1.2);
}

/* Social Pill Links */
.social-links-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  transition: all var(--duration) var(--ease);
}

.social-pill svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-pill--ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-pill--fb {
  background: #1877f2;
}

.social-pill--tk {
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
}

.social-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .video-carousel {
    padding: 0 10px;
  }

  .video-carousel .swiper-button-prev,
  .video-carousel .swiper-button-next {
    display: none;
  }

  .social-links-row {
    flex-direction: column;
    align-items: center;
  }

  .social-pill {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  background: var(--terra);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--flour);
  margin-bottom: var(--space-xs);
}

.cta-banner p {
  color: rgba(242, 232, 220, 0.85);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.cta-banner .btn {
  margin: 0 var(--space-xs);
}

/* ================================================
   DIGITAL MENU PAGE
   ================================================ */
.menu-filters {
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  background: var(--flour);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(74, 46, 31, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menu-filters::-webkit-scrollbar {
  display: none;
}

.menu-filters__inner {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 var(--space-sm);
}

.menu-filter-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(74, 46, 31, 0.2);
  color: var(--ash);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.menu-filter-btn:hover {
  border-color: var(--gold);
  color: var(--wood);
}

.menu-filter-btn.active {
  background: var(--wood);
  color: var(--flour);
  border-color: var(--wood);
}

/* Menu Category */
.menu-category {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(74, 46, 31, 0.08);
}

.menu-category__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.menu-category__header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 680px) {
  .menu-items {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

.menu-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  background: rgba(74, 46, 31, 0.03);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.menu-item:hover {
  background: rgba(74, 46, 31, 0.06);
  box-shadow: 0 2px 12px rgba(74, 46, 31, 0.08);
}

.menu-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: 0.35rem;
}

.menu-item__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wood);
  line-height: 1.3;
}

.menu-item__price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--terra);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item__desc {
  font-size: 0.88rem;
  color: var(--ash);
  line-height: 1.6;
}

/* ================================================
   STORIA PAGE
   ================================================ */
.timeline {
  position: relative;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.timeline__item {
  padding-left: 60px;
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--terra);
  border: 3px solid var(--flour);
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline__year {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.3rem;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ================================================
   IL FORNO PAGE
   ================================================ */
.forno-philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.forno-philosophy__content h3 {
  margin-bottom: var(--space-sm);
}

.forno-philosophy__content p {
  margin-bottom: var(--space-sm);
}

.forno-philosophy__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.forno-philosophy__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Emotional Close */
.emotional-close {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.emotional-close__text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--flour);
  line-height: 1.4;
  font-weight: 600;
}

/* Infographic Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: rgba(242, 232, 220, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.stat-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.stat-card__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--flour);
  margin-bottom: 0.3rem;
}

.stat-card__desc {
  font-size: 0.8rem;
  color: rgba(242, 232, 220, 0.6);
}

/* Sensory section */
.sensory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.sensory-card {
  padding: var(--space-lg);
}

.sensory-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.sensory-card h4 {
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

/* ================================================
   CONTATTI PAGE
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info {
  padding: var(--space-lg) 0;
}

.contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.contact-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-item p {
  font-size: 0.95rem;
}

.contact-item a {
  color: var(--terra);
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--terra-light);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* Social icons */
.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wood);
  color: var(--flour);
  font-size: 1.2rem;
  transition: all var(--duration) var(--ease);
}

.social-link:hover {
  background: var(--terra);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--charcoal);
  color: var(--flour);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand img {
  height: 50px;
  margin-bottom: var(--space-sm);
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(242, 232, 220, 0.6);
  max-width: 300px;
}

.footer__col h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(242, 232, 220, 0.7);
  margin-bottom: 0.5rem;
  transition: color var(--duration) var(--ease);
}

.footer__col a:hover {
  color: var(--flour);
}

.footer__col p {
  font-size: 0.9rem;
  color: rgba(242, 232, 220, 0.7);
}

.footer__bottom {
  border-top: 1px solid rgba(242, 232, 220, 0.1);
  padding-top: var(--space-md);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(242, 232, 220, 0.4);
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease),
              transform 0.4s var(--ease);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.7s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .forno-philosophy {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  /* Header mobile */
  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    transition: right var(--duration) var(--ease);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav a {
    font-size: 1.1rem;
  }

  .header__nav .header__cta {
    margin-top: var(--space-xs);
    padding: 0.25rem 0 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--gold) !important;
  }

  /* Hero */
  .hero__logo {
    width: 200px;
  }

  /* Grids */
  .about-preview,
  .signature,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-preview__image {
    order: -1;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .sensory-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer__brand p {
    max-width: none;
  }

  .social-links {
    justify-content: center;
  }

  /* Section spacing */
  .section {
    padding: var(--space-xl) 0;
  }

  .section--lg {
    padding: var(--space-2xl) 0;
  }

  /* CTA banner */
  .cta-banner .btn {
    display: block;
    width: 100%;
    margin: 0 0 var(--space-sm) 0;
  }

  /* Menu filters horizontal scroll */
  .menu-filters__inner {
    justify-content: flex-start;
  }

  /* Btn group stack */
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .hero__logo {
    width: 160px;
  }

  .page-hero {
    min-height: 40vh;
  }
}

/* ================================================
   MOBILE NAV OVERLAY
   ================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ================================================
   UTILITY
   ================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ================================================
   WHATSAPP FLOATING BUTTON
   ================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #FFFFFF;
}

/* ================================================
   VIS DIGITAL BADGE (Floating)
   ================================================ */
.vis-badge {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
}

.vis-badge__icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  animation: visBadgePulse 3s ease-in-out 4s infinite;
}

.vis-badge__icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(74, 46, 31, 0.2);
}

.vis-badge__icon svg {
  width: 20px;
  height: 24px;
}

.vis-badge__popup {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration) var(--ease);
  min-width: 260px;
}

.vis-badge__popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vis-badge__popup p {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  max-width: none;
}

.vis-badge__btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #a855f7, #ec4899, #fb923c);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.vis-badge__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

@keyframes visBadgePulse {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(168, 85, 247, 0.15), 0 0 0 16px rgba(236, 72, 153, 0.08);
  }
}

/* Footer Powered By */
.footer__powered {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer__powered:hover {
  color: rgba(255, 255, 255, 0.6);
}

.footer__powered-icon {
  width: 14px;
  height: 16px;
}

.footer__powered-icon path {
  fill: rgba(255, 255, 255, 0.5);
}

.footer__powered:hover .footer__powered-icon path {
  fill: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  .vis-badge {
    bottom: 1.25rem;
    left: 1.25rem;
  }
  .vis-badge__icon {
    width: 40px;
    height: 40px;
  }
  .vis-badge__icon svg {
    width: 18px;
    height: 21px;
  }
}
