/* ============================================================
   Pasta To Go Taormina — Design System
   Fonts: Changa One (display), Waiting for the Sunrise (script), Raleway (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Waiting+for+the+Sunrise&display=swap');

/* ---- Tokens ---- */
:root {
  --green-dark:    #1a1a1a;
  --green-bg:      #0d0d0d;
  --green-mid:     #2a2a2a;
  --green-bright:  #f0f0f0;
  --red-cta:       #4a4a4a;
  --white:         #ffffff;
  --off-white:     #f4f4f4;
  --text-muted:    #b2b0b0;
  --text-dark:     #111111;
  --overlay-dark:  rgba(0,0,0,0.75);

  --font-display:  'Changa One', Impact, sans-serif;
  --font-script:   'Waiting for the Sunrise', cursive;
  --font-body:     'Raleway', system-ui, sans-serif;

  --max-w:  1280px;
  --pad:    clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
  --ease:   0.22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--green-bg);
  color: var(--off-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; padding: 0; }
address { font-style: normal; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--green-bright);
  color: var(--text-dark);
  padding: .4rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
  font-size: .875rem;
}
.skip-link:focus { top: 0; }

/* ---- Container helper ---- */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--green-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* Left nav */
.header-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.header-nav .nav-link {
  font-weight: 700;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  transition: color var(--ease);
}
.header-nav .nav-link:hover { color: var(--green-bright); }

/* Center logo */
.header-logo { display: flex; justify-content: center; }
.header-logo img { height: 46px; width: auto; }

/* Right actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .625rem;
}

/* Social icon circles */
.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease);
}
.social-icon svg { width: 13px; height: 13px; fill: var(--white); display: block; }
.social-icon:hover { background: var(--green-bright); }
.social-icon:hover svg { fill: var(--text-dark); }

/* Language switcher */
.lang-switcher {
  display: flex;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 3px;
  overflow: hidden;
  margin-left: .25rem;
}
.lang-link {
  padding: .2rem .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(255,255,255,.6);
  transition: all var(--ease);
}
.lang-link.active,
.lang-link:hover {
  background: var(--green-bright);
  color: var(--text-dark);
}

/* Hamburger button (mobile only) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: .5rem;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 1.25rem var(--pad) 1.5rem;
  gap: .25rem;
}
.mobile-menu.is-open { display: flex; }
.mobile-nav-link {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color var(--ease);
}
.mobile-nav-link:hover { color: var(--green-bright); }
.mobile-footer-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: 1rem;
  flex-wrap: wrap;
}


/* ============================================================
   HERO SECTION  (titles + two content panels)
   ============================================================ */
.hero-section {
  position: relative;
  background: linear-gradient(160deg, #1a1a1a 0%, #0f0f0f 60%, #0a0a0a 100%);
  overflow: hidden;
}

/* Subtle pasta-shape texture over entire hero */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/pasta-types_bg.png') center/400px auto;
  opacity: .055;
  pointer-events: none;
}

/* ---- Title row ---- */
.hero-titles {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 2.5rem var(--pad) 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 9rem);
  line-height: .88;
  color: var(--white);
  text-transform: uppercase;
}
.hero-script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3.5vw, 3.2rem);
  text-transform: none;
  font-weight: 400;
  color: var(--green-bright);
  line-height: 1.3;
  margin-top: .25rem;
}

.hero-secondary-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .92;
  color: var(--white);
  text-transform: uppercase;
  text-align: right;
}
.hero-secondary-title span { color: var(--green-bright); }
.hero-secondary-title em {
  font-style: italic;
  font-family: var(--font-script);
  font-size: .55em;
  color: var(--white);
  vertical-align: middle;
}

/* ---- Content panels ---- */
.hero-panel {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
}

.hero-panel + .hero-panel {
  margin-top: 0;
}

.panel-text {
  padding: 2rem 1.5rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel-text h2,
.panel-text h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .75rem;
}
.panel-text h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.panel-text h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.panel-text p  {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--off-white);
  max-width: 380px;
  opacity: .88;
}

.panel-image-wrap {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.panel-image-wrap img {
  width: 100%;
  max-width: 520px;
  height: 300px;
  object-fit: contain;
  object-position: bottom center;
}

/* GoTo MENU circular button */
.goto-btn {
  position: absolute;
  bottom: 1.25rem;
  right: .5rem;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--green-bright);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: .5rem;
  transition: transform var(--ease), filter var(--ease);
  z-index: 2;
  font-weight: 400;
}
.goto-btn:hover { transform: scale(1.1); filter: brightness(1.1); }
.goto-btn.red {
  background: var(--red-cta);
  color: var(--white);
}
.goto-btn.red:hover { filter: brightness(1.2); }


/* ============================================================
   FEATURES GRID  (Autentici / Sapori / Veloci)
   ============================================================ */
.features-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/pasta-types_bg.png') center/500px auto;
  opacity: .07;
  pointer-events: none;
}

.features-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.feature-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: .6rem;
  position: relative;
  z-index: 2;
}
.feature-card p {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--off-white);
  max-width: 200px;
  opacity: .85;
  position: relative;
  z-index: 2;
}
.feature-card .feature-img {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 58%;
  max-width: 200px;
  opacity: .85;
  pointer-events: none;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-bg);
}

/* ---- Delivery CTA band ---- */
.footer-cta {
  position: relative;
  background: url('/assets/images/cta-bg.jpg') center/cover no-repeat;
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.footer-cta-inner {
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 4rem var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cta-heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: .9;
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  color: var(--white);
}
.cta-heading.accent { color: var(--green-bright); }

.footer-cta-text p {
  margin: 1.25rem 0 2rem;
  font-size: .975rem;
  line-height: 1.7;
  max-width: 380px;
  opacity: .88;
}
.footer-cta-text p strong { color: var(--green-bright); }

.cta-btn {
  display: inline-block;
  background: var(--green-bright);
  color: var(--text-dark);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .9rem 2.25rem;
  border-radius: var(--radius);
  font-size: .95rem;
  transition: background var(--ease), transform var(--ease);
}
.cta-btn:hover { background: var(--white); transform: translateY(-2px); }

.footer-cta-visit {
  border-left: 2px solid rgba(255,255,255,.3);
  padding-left: 2.5rem;
}
.footer-cta-visit h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .6rem;
}
.footer-cta-visit h3 a:hover,
.footer-cta-visit p a:hover { color: var(--green-bright); }
.footer-cta-visit p {
  font-size: .95rem;
  line-height: 1.6;
  opacity: .85;
}

/* ---- Footer bottom ---- */
.footer-bottom {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 2rem 0 0;
}

.footer-bottom-row {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-bottom: 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: .5rem;
  align-items: center;
}


.footer-info {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.footer-info-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-bright);
  margin-bottom: .15rem;
}
.footer-info address,
.footer-info p {
  font-size: .875rem;
  color: var(--off-white);
  line-height: 1.5;
  opacity: .85;
}
.footer-info a { transition: color var(--ease); }
.footer-info a:hover { color: var(--green-bright); opacity: 1; }

/* Legal bar */
.footer-legal {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1rem var(--pad) 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .75rem;
  color: var(--text-muted);
}
.footer-legal nav { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: var(--white); }


/* ============================================================
   RESPONSIVE — 768px and below
   ============================================================ */
@media (max-width: 768px) {
  /* Header: show hamburger, hide desktop nav/actions */
  .header-inner {
    grid-template-columns: auto 1fr auto;
    height: 58px;
  }
  .header-nav,
  .header-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-logo { grid-column: 2; text-align: center; }
  .header-logo img { height: 36px; }

  /* Hero titles: stack */
  .hero-titles {
    grid-template-columns: 1fr;
    padding: 1.75rem var(--pad) 1rem;
    gap: 1rem;
  }
  .hero-secondary-title { text-align: left; }

  /* Hero panels: single column */
  .hero-panel {
    grid-template-columns: 1fr;
    padding: 0 var(--pad);
  }
  .panel-text { padding: 1.5rem 0 1rem; }
  .panel-image-wrap { min-height: 220px; }
  .panel-image-wrap img { height: 220px; }
  .goto-btn { bottom: .75rem; right: .25rem; width: 64px; height: 64px; font-size: .55rem; }

  /* Features: single column */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feature-card { min-height: 180px; }

  /* Footer CTA: stack */
  .footer-cta-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem var(--pad);
  }
  .footer-cta-visit {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,.25);
    padding-top: 1.5rem;
  }

  /* Footer bottom: 2-col */
  .footer-bottom-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Legal: stack */
  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal nav { justify-content: center; }
}

/* 769–1024px: tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-main-title { font-size: clamp(3.5rem, 7vw, 6rem); }
  .hero-secondary-title { font-size: clamp(2rem, 4.5vw, 3.5rem); }
  .features-grid { gap: 1rem; }
  .footer-bottom-row { gap: 1.5rem; }
}


/* ============================================================
   HERO CAROUSEL SLIDES
   ============================================================ */
.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}


/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform var(--ease), box-shadow var(--ease);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.wa-float svg {
  width: 28px;
  height: 28px;
  fill: var(--text-dark);
}
