/* =========================================
   MR. PINKY – style.css (revised v3.1)
   ========================================= */

/* --- FONT: Bryndan Write --- */
@font-face {
  font-family: 'Bryndan Write';
  src: url('fonts/BryndanWrite.woff2') format('woff2'),
       url('fonts/BryndanWrite.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

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

:root {
  --pink:      #e8006e;
  --pink-lt:   #ff5fa0;
  --pink-dk:   #b5005a;
  --yellow:    #f5b244;
  --yellow-dk: #c9a200;
  --blue:      #212e4f;
  --fucsia:    #df3a68;
  --dark:      #0d0d0d;
  --light:     #fff8f9;
  --gray:      #888;
  --radius:    18px;
  --shadow:    0 8px 40px rgba(0,0,0,.22);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Nunito', sans-serif;
  --font-hand:    'Bryndan Write', 'Nunito', cursive;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--yellow);
  color: #1a1000;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* --- UTILITY --- */
.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}
.pink { color: var(--pink); }
.section { padding: 90px 0; }

.section-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pink-dk);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 14px;
  color: #1a1000;
}

/* =================== NAVBAR =================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5vw;
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(245,178,68,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img {
  height: 46px;
  filter: drop-shadow(0 0 8px rgba(232,0,110,.5));
  transition: transform .3s;
}
.nav-logo img:hover { transform: scale(1.06); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #1a1000;
  transition: color .2s;
}
.nav-links a:hover { color: var(--pink); }

.btn-order {
  background: var(--pink);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 900 !important;
  letter-spacing: .06em;
  transition: background .2s, transform .2s !important;
}
.btn-order:hover {
  background: var(--pink-lt) !important;
  transform: translateY(-2px) !important;
}

/* burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 26px; height: 3px;
  background: #1a1000;
  border-radius: 2px;
  transition: .3s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =================== HERO CAROUSEL =================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }

.hero-slide:nth-child(1) {
   background-image: url('images/pic07.jpg');
}

.hero-slide.slide2 {
  background-image: url('images/pic06.jpg');
  background-size: cover;
  background-position: center;
}

.hero-slide.slide3 {
  background-image: url('images/pic08.jpg');
  background-size: cover;
  background-position: center;
}
.hero-slide.slide4 {
  background-image: url('images/pic09.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13,13,13,.82) 0%,
    rgba(13,13,13,.55) 50%,
    rgba(13,13,13,.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 120px 8vw 80px;
}
.hero-tag {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.hero-tag1 {
  font-weight: 700;
  font-size: .60rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: .9;
  margin-bottom: 20px;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #ddd;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 40px;
}
.hero-sub strong { color: #fff; }

.btn-hero {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 18px 44px;
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(232,0,110,.5);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(232,0,110,.7);
  background: var(--pink-lt);
}

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .3s, transform .3s;
  border: none;
}
.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* =================== SALSE =================== */
.salse { background: var(--yellow); }
.salse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 50px;
}
.salsa-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.salsa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(232,0,110,.2);
}

.salsa-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #fff0f5;
}
.salsa-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s;
}
.salsa-card:hover .salsa-img-wrap img { transform: scale(1.05); }

.salsa-body { padding: 24px 28px 30px; }
.salsa-body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .05em;
  color: var(--pink);
  margin-bottom: 6px;
}
.salsa-claim {
  font-style: italic;
  font-weight: 700;
  color: var(--gray);
  font-size: .9rem;
  margin-bottom: 12px;
}
.salsa-body p { color: #555; line-height: 1.6; font-size: .93rem; }
.salsa-card.hot .salsa-body h3 { color: #ff6b35; }

/* =================== SOCIAL STRIP =================== */
.social-strip {
  background: var(--pink);
  padding: 40px 5vw;
}
.social-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.social-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 4px;
  color: #fff;
}
.social-text p { font-size: .95rem; opacity: .9; color: #fff; }
.social-links { display: flex; gap: 14px; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s, opacity .2s;
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { transform: translateY(-2px); opacity: .85; }
.social-btn.ig { background: rgba(255,255,255,.18); }
.social-btn.tt { background: rgba(0,0,0,.25); }

/* =================== BOXES =================== */
.boxes { background: var(--yellow); }
.section-warning {
  color: #7a6000;
  font-size: .9rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.box-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .35s, box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.box-card:hover { transform: translateY(-8px); }

.box-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.box-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.box-card:hover .box-img-wrap img { transform: scale(1.07); }

.box-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: #fff;
  color: var(--fucsia);
  font-weight: 900;
  font-size: .7rem;
  letter-spacing: .14em;
  padding: 5px 12px;
  border-radius: 20px;
}

.box-body {
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box-name {
  font-family: var(--font-hand);
  font-size: 2rem;
  letter-spacing: .06em;
  line-height: 1;
}

.box-claim {
  font-style: italic;
  font-size: .88rem;
  opacity: .82;
  font-weight: 600;
}
.box-contents {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.box-contents li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .93rem;
}
.icon { font-size: .65rem; opacity: .7; }

.box-price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  margin-top: 6px;
}
.box-price span { font-size: 1.6rem; }

.btn-box {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 900;
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 6px;
  transition: opacity .2s, transform .2s;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-box:hover { opacity: .85; transform: translateY(-2px); }

/* --- FUCSIA BOX --- */
.box-fucsia {
  background: #df3a68;
  box-shadow: 0 12px 50px rgba(223,58,104,.35);
  color: #fff;
}
.box-fucsia:hover { box-shadow: 0 20px 70px rgba(223,58,104,.55); }

/* --- YELLOW BOX --- */
.box-yellow {
  background: #f5b244;
  color: #001f3e;
  box-shadow: 0 12px 50px rgba(200,130,0,.55) !important;
}
.box-yellow:hover { box-shadow: 0 20px 70px rgba(200,130,0,.75) !important; }
.box-yellow .btn-box {
  background: rgba(0,0,0,.2);
  border-color: rgba(0,0,0,.3);
  color: #001f3e;
}
.box-yellow .icon { opacity: .5; }
.box-yellow .box-name { color: #001f3e; }

/* --- BLU BOX --- */
.box-blu {
  background: #212e4f;
  box-shadow: 0 12px 50px rgba(33,46,79,.45);
  color: #fff;
}
.box-blu:hover { box-shadow: 0 20px 70px rgba(33,46,79,.65); }

/* =================== EXTRA FOOD =================== */
.extra-food-section {
  margin-top: 48px;
  background: #212e4f;
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.extra-food-label {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  letter-spacing: .15em;
  color: var(--yellow);
  margin-bottom: 4px;
}
.extra-food-sub {
  font-size: .88rem;
  color: #aaa;
  font-weight: 600;
}
.extra-food-rows {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.extra-food-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245,178,68,.1);
  border: 1px solid rgba(245,178,68,.25);
  border-radius: 50px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
}
.extra-food-row .price-tag {
  background: var(--yellow);
  color: #1a1000;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}

/* =================== SALSE SPECIAL BOX =================== */
.salse-special-section {
  margin-top: 32px;
  background: #212e4f;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  min-height: 240px;
}

.salse-special-img {
  flex: 0 0 360px;
  max-width: 360px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.salse-special-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.salse-special-content {
  flex: 1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.salse-special-title {
  font-family: var(--font-hand);
  font-size: 2.6rem;
  letter-spacing: .08em;
  line-height: 1;
  color: #fff;
}
.salse-special-title span {
  color: var(--yellow);
}

.salse-special-body {
  color: #fff;
}

.salse-special-price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--yellow);
  line-height: 1;
}

.salse-icons {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.salse-icon-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.salse-icon-item img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.salse-icon-item span {
  font-family: var(--font-hand);
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
}

.salse-icons-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
}

/* =================== ORDER CTA =================== */
.order-cta {
  text-align: center;
  margin-top: 56px;
}
.btn-main {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 20px 54px;
  border-radius: 50px;
  box-shadow: 0 0 40px rgba(232,0,110,.4);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(232,0,110,.65);
  background: var(--pink-lt);
}

/* =================== FOOTER =================== */
.footer {
  background: #003366;
  border-top: 2px solid var(--yellow-dk);
  padding: 60px 5vw 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer-logo { height: 60px; filter: brightness(.9); }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-contact a { color: var(--yellow); font-weight: 700; }
.footer-contact p { color: #ccc; margin: 0; }
.footer-contact-item { display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.footer-social { display: flex; gap: 20px; }
.footer-social a {
  color: #888;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
.footer-social a:hover { color: var(--yellow); }
.footer-legal { color: #fff; font-size: .78rem; line-height: 1.7; }

/* =================== REVEAL ANIMATION =================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}



/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  .boxes-grid { grid-template-columns: 1fr 1fr; }
  .box-fucsia { grid-column: 1 / -1; }
  .salse-special-section { flex-direction: column; }
  .salse-special-img { flex: none; max-width: 100%; height: 260px; padding: 16px; }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(245,178,68,.98);
    flex-direction: column;
    align-items: center;
    padding: 28px 0 36px;
    gap: 20px;
    
    /* FIX: Nascondiamo l'elemento in modo sicuro ed evitiamo bug grafici e interazioni errate a menu chiuso */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
    border-bottom: 2px solid rgba(0,0,0,.1);
  }
  
  .nav-links.open { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
  }
  
  .burger { display: flex; }
  .boxes-grid { grid-template-columns: 1fr; }
  .box-fucsia { grid-column: auto; }
  .social-inner { flex-direction: column; text-align: center; }
  .extra-food-section { flex-direction: column; text-align: center; }
  .extra-food-rows { justify-content: center; }
  .salse-special-section { flex-direction: column; }
  .salse-special-img { flex: none; max-width: 100%; height: 220px; padding: 12px; }
  .salse-special-content { padding: 24px; }
  .salse-special-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero h1 { font-size: 4.5rem; }
}
/* --- LAYOUT GRID FOOTER PERFETTAMENTE ALLINEATO --- */
.footer-grid-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Divide lo spazio in 3 parti uguali */
  width: 100%;
  max-width: 1200px; /* Si allinea con la larghezza dei blocchi sovrastanti */
  margin: 50px auto 20px auto;
  gap: 20px;
}

/* Colonna 1 (DOVE E QUANDO) - Allineata a sinistra */
.footer-col:nth-child(1) {
  justify-self: start;
  text-align: left !important;
}

/* Colonna 2 (SCOPRI MR PINKY) - Centrata sotto il logo, testo a sinistra */
.footer-col:nth-child(2) {
  justify-self: center;
  text-align: left !important;
}

/* Colonna 3 (UNISCITI ALLA CREW) - Spinta a destra, testo allineato a sinistra */
.footer-col:nth-child(3) {
  justify-self: end;
  text-align: left !important; /* Testo a sinistra internamente */
  min-width: 180px; /* Impedisce che si stringa troppo */
}

/* Stili Titoli Colonne */
.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  color: #f5b244; 
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  border-bottom: 2px solid #e8006e; 
  padding-bottom: 5px;
  display: inline-block;
}

/* Gestione testi e contatti */
.footer-contact-item {
  color: #ffffff !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 12px 0 !important;
  display: block;
}
.footer-contact-item b {
  color: #f5b244; 
}
.footer-contact-item a {
  color: #ffffff !important;
  text-decoration: none;
}
.footer-contact-item a:hover {
  color: #e8006e !important;
}

/* Link centrali */
.footer-seo-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-seo-links li {
  margin-bottom: 12px;
  list-style-type: none !important;
}
.footer-seo-links li a {
  color: #ffffff !important;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-seo-links li a:hover {
  color: #e8006e !important;
}

/* Link Social */
.footer-social-links a {
  display: block;
  color: #ffffff !important;
  margin-bottom: 12px;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-social-links a:hover {
  color: #e8006e !important;
}

/* Reset per il contenitore del tema */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center; 
  width: 100%;
}

/* --- OTTIMIZZAZIONE PER SMARTPHONE --- */
@media (max-width: 768px) {
  .footer-grid-links {
    grid-template-columns: 1fr; /* Una sola colonna centrale su smartphone */
    gap: 40px;
  }
  .footer-col:nth-child(1),
  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    justify-self: center;
    text-align: center !important;
  }
  .footer-social-links a {
    display: inline-block;
    margin: 0 10px;
  }
}