/* ===== Base ===== */
:root{
  --primary-hover: #b20710;
  --accent-hover: #ff8585;
  --bg:#000;
  --card:#0a0a0a;
  --card-border:#1e1e1e;
  --text:#fff;
  --muted:#e5e5e5;
  --primary:#e50914;
  --accent:#ff6b6b;
  --price:#ff4d4f;
  /* Hero image path */
  --hero-image: url('img/hero.png');
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ===== Navbar ===== */
.navbar{
  background:#000;
  position:sticky; top:0; z-index:10;
  border-bottom:1px solid #111;
}
.navbar-container{
  height:64px; display:flex; align-items:center; justify-content:center;
}
.navbar-logo{height:40px}

/* ===== Hero (responsive background) ===== */
.hero{
  position: relative;
  text-align:center;
  padding: clamp(56px, 8vw, 96px) 16px clamp(28px, 6vw, 48px);
  min-height: clamp(360px, 52vh, 640px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#fff;
  /* image + overlay for readability */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.55)),
    var(--hero-image);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero h1{
  font-weight:700; max-width: 1100px; margin: 0 auto 16px;
  font-size: clamp(24px, 3.2vw, 40px);
  text-wrap: balance;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.cta{
  background: var(--primary);
  color:#fff; text-decoration:none;
  display:inline-block; padding:12px 22px; border-radius:12px; font-weight:700;
  transition: opacity .2s ease, transform .2s ease;
}
.cta:hover{ opacity:.9; transform: translateY(-1px); }
.cta:focus{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Sections ===== */
.section{ padding: 36px 16px; }
.section h2{
  text-align:center; font-size: clamp(22px, 2.4vw, 32px);
  margin: 0 auto 24px; color: var(--primary);
}

/* ===== Plans (Responsive Grid) ===== */
.plans-grid{
  max-width: 1100px; margin: 0 auto; display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px){
  .plans-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px){
  .plans-grid{ grid-template-columns: repeat(3, 1fr); }
}

.plan-card{
  background: var(--card);
  border:1px solid var(--card-border);
  border-radius:16px; overflow:hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display:flex; flex-direction:column;
}
.plan-card.highlight{ outline: 2px solid rgba(178,7,16,.55); }
.plan-card:hover{ transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.35); border-color:#2b2b2b; }

.plan-card img{ width:100%; height: 180px; object-fit: cover; display:block; }
.plan-body{ padding: 16px; display:flex; flex-direction:column; gap: 8px; }
.plan-body h3{ margin:4px 0; font-size: 1.15rem; }

.badge{
  align-self:flex-start;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color:#001018; font-weight:700;
  padding:4px 10px; border-radius:999px; font-size: .75rem;
}
.price{ font-weight:700; font-size: 1.15rem; color: var(--price); margin: 4px 0 8px; }

.features{ margin: 0 0 8px; padding-left: 18px; color: var(--muted); }
.features li{ margin: 6px 0; }

.cta-plan{
  display:inline-block; width:100%; text-align:center;
  font-weight:700; padding: 10px 14px; border-radius:10px;
  background: var(--primary); color:#fff; text-decoration:none;
}
.small-note{ opacity:.8; font-size:.8rem; margin-top:6px; display:block; }

/* ===== Reviews ===== */
.reviews .reviews-grid{
  max-width: 1100px; margin: 0 auto; display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px){
  .reviews .reviews-grid{ grid-template-columns: repeat(4, 1fr); }
}
.review-card{
  background:#111; border:1px solid #1c1c1c; border-radius:14px; padding:10px; text-align:center;
}
.review-card img{ width:100%; border-radius:10px; height: 160px; object-fit: cover; }
.review-card h3{ margin:10px 0 6px; font-size: 0.95rem; }
.review-card p{ font-size:.9rem; color:#ddd; margin:0; }

/* ===== Bio ===== */
.center-bio{ display:flex; flex-direction:column; align-items:center; gap:14px; }
.bio-pic{ width: 150px; border-radius: 50%; }
.bio-centered{ max-width: 820px; padding: 0 16px; text-align:center; }

/* ===== Footer ===== */
.site-footer{ text-align:center; padding: 32px 16px; background:#000; border-top:1px solid #111; }
.footer-icon{ width:40px; height:40px; transition: transform .2s ease; }
.footer-icon:hover{ transform: scale(1.06); opacity:.9; }
.footer-socials{ display:flex; justify-content:center; gap: 26px; margin-bottom: 10px; }

/* ===== Utility ===== */
img{ max-width:100%; height:auto }



  .reviews .reviews-grid::-webkit-scrollbar{ height: 8px; }
  .reviews .reviews-grid::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.2); border-radius: 999px; }
}

.reviews .reviews-grid{ scrollbar-width: thin; }



/* ====== Carousel Recensioni su Mobile ====== */
@media (max-width: 640px) {
  .reviews .reviews-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-inline: 1rem;
  }

  .review-card {
    flex: 0 0 80%;
    max-width: 320px;
    scroll-snap-align: center;
  }

  .reviews .reviews-grid::-webkit-scrollbar {
    height: 6px;
  }
  .reviews .reviews-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
  }
}



/* ===== Carousel Recensioni: override mobile <=640px ===== */
@media (max-width: 640px){
  .reviews .reviews-grid{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-inline: 1rem;
    scrollbar-width: thin;
  }
  .reviews .reviews-grid > * { scroll-margin-inline: 1rem; }
  .review-card{
    flex: 0 0 80%;
    max-width: 320px;
    scroll-snap-align: center;
  }
  .reviews .reviews-grid::-webkit-scrollbar{ height: 6px; }
  .reviews .reviews-grid::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.2);
    border-radius: 999px;
  }
}



/* ===== Center reviews on tablet/desktop ===== */
@media (min-width: 641px) and (max-width: 1024px){
  .reviews .reviews-grid{
    grid-template-columns: repeat(2, minmax(240px, 300px)) !important;
    justify-content: center !important;
  }
}
@media (min-width: 1025px){
  .reviews .reviews-grid{
    grid-template-columns: repeat(3, minmax(240px, 300px)) !important;
    justify-content: center !important; /* centra l'intera griglia */
  }
  .review-card{
    max-width: 300px !important; /* larghezza coerente con le colonne */
  }
}







/* ===== Hero Title: slim & minimal ===== */
.hero h1{
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 0 1rem 0;
}


button:hover, .btn:hover {
  background-color: var(--primary-hover);
  color: #fff;
}
a:hover {
  color: var(--accent-hover);
}


/* ===== Addon Card (Consigli Alimentari) ===== */
.addon-section {
  max-width: 1100px;
  margin: 0 auto;
}
.addon-card {
  flex-direction: row;
  align-items: center;
}
.addon-card img {
  max-width: 160px;
  height: auto;
  object-fit: cover;
  border-radius: 12px 0 0 12px;
}
.addon-card .plan-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.addon-card .addon-title {
  font-size: 1.1rem;
  color: var(--primary);
}
.addon-card .addon-sub {
  font-size: .9rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .addon-card {
    flex-direction: column;
  }
  .addon-card img {
    width: 100%;
    border-radius: 12px 12px 0 0;
  }
}


/* ===== Add-on (Consigli Alimentari) ===== */
.addon-section{ padding: 10px 16px 36px; }
.addon-eyebrow{
  font-size:.85rem; font-weight:700; letter-spacing:.06em;
  color: var(--muted); text-transform: uppercase;
  max-width:1100px; margin:0 auto 8px;
}
.addon-wrap{ max-width:1100px; margin:0 auto; }

.addon-card{
  display:grid; grid-template-columns: 56px 1fr auto;
  align-items:center; gap:14px;
  background: var(--card);
  border:1px solid var(--card-border);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 12px 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.addon-card:hover{
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  border-color:#2b2b2b;
}

.addon-icon{
  width:48px; height:48px; display:grid; place-items:center;
  border-radius: 10px;
  background: #130000;
  border: 1px solid rgba(229,9,20,.35);
  font-size:24px;
}

.addon-title{
  margin:0; font-size: 1rem; line-height:1.2; font-weight:700; color:#fff;
}
.addon-sub{ margin:.25rem 0 0; font-size:.95rem; color: var(--muted); }

.addon-cta{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--primary);
  color:#fff; text-decoration:none; font-weight:800;
  border-radius: 999px; padding:10px 14px;
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.addon-cta:hover{ background: var(--primary-hover); }

.addon-cta .plus{
  width:20px; height:20px; display:grid; place-items:center;
  border-radius:50%; border:1px solid rgba(255,255,255,.4);
  font-weight:900; font-size: 14px; line-height: 1;
}

/* Mobile tweaks */
@media (max-width: 640px){
  .addon-card{ grid-template-columns: 44px 1fr; row-gap:8px; padding: 12px; }
  .addon-icon{ width:40px; height:40px; font-size:20px; }
  .addon-cta{ grid-column: 1 / -1; justify-self: start; padding:10px 12px; }
  .addon-title{ font-size: .98rem; }
  .addon-sub{ font-size:.9rem; }
}
