:root{
  /* === Paleta Prato em T === */

  /* Verde (hortícolas) */
  --nutrir-green: #9ED9C1;
  --nutrir-green-dark: #6FB89E;

  /* Amarelo (cereais) */
  --nutrir-yellow: #F4DEAE;
  --nutrir-yellow-dark: #E6C982;

  /* Neutros */
  --nutrir-ink: #1F2937;
  --nutrir-bg: #F7FAF9;

  /* RGB helpers */
  --nutrir-green-rgb: 158, 217, 193;
  --nutrir-yellow-rgb: 244, 222, 174;
  --nutrir-bg-rgb: 247, 250, 249;

  /* Hero gradient */
  --hero-stop1: var(--nutrir-bg);
  --hero-stop1-rgb: 247, 250, 249;
  --hero-stop1-a: 1;

  --hero-stop2: var(--nutrir-green);
  --hero-stop2-rgb: 158, 217, 193;
  --hero-stop2-a: .35;

  --hero-stop3: #ffffff;
  --hero-stop3-rgb: 255, 255, 255;
  --hero-stop3-a: 1;

  /* Bootstrap tokens */
  --bs-body-color: var(--nutrir-ink);
  --bs-body-color-rgb: 31, 41, 55;
  --bs-heading-color: var(--nutrir-ink);
  --bs-emphasis-color: var(--nutrir-ink);

  --bs-link-color: var(--nutrir-green-dark);
  --bs-link-hover-color: #4f9f86;
  
    --nav-offset: 100px;
}
 
 
html {
  scroll-padding-top: var(--nav-offset);
  scroll-behavior: smooth;
} 

/* === Base === */
body{
  color: var(--nutrir-ink);
  background: #ffffff;
}

section{
  scroll-margin-top: var(--nav-offset);
}

/* === Fundos === */
.bg-cream{
  background: var(--nutrir-bg);
}

/* === Texto === */
.text-olive{
  color: var(--nutrir-green-dark);
}

/* === Botões principais (verde) === */
.btn-olive{
  --bs-btn-bg: var(--nutrir-green-dark);
  --bs-btn-border-color: var(--nutrir-green-dark);
  --bs-btn-hover-bg: #5aa88f;
  --bs-btn-hover-border-color: #5aa88f;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-color: #ffffff;
}

/* === Botão secundário (amarelo) === */
.btn-yellow{
  --bs-btn-bg: var(--nutrir-yellow);
  --bs-btn-border-color: var(--nutrir-yellow);
  --bs-btn-hover-bg: var(--nutrir-yellow-dark);
  --bs-btn-hover-border-color: var(--nutrir-yellow-dark);
  --bs-btn-color: #5b4a1d;
  --bs-btn-hover-color: #5b4a1d;
}

/* === Layout === */
.section{
  padding: 4.5rem 0;
}

.section-title{
  letter-spacing: .2px;
}

/* === Hero === */
.hero{
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
  background: linear-gradient(
    0deg,
    rgba(var(--hero-stop1-rgb), var(--hero-stop1-a)) 0%,
    rgba(var(--hero-stop2-rgb), var(--hero-stop2-a)) 60%,
    rgba(var(--hero-stop3-rgb), var(--hero-stop3-a)) 100%
  );
}

/* === Cards / painéis === */
.card{
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,.04);
}

/* === Badges suaves === */
.badge-soft-green{
  background: rgba(var(--nutrir-green-rgb), .25);
  color: #2f6f5b;
}

.badge-soft-yellow{
  background: rgba(var(--nutrir-yellow-rgb), .35);
  color: #7a5c1c;
}

/* Navbar */
.navbar{
  backdrop-filter: blur(8px);
}

/* Cards */
.card{
  border-radius: 1rem;
}

/* Badges */
.badge-olive{
  background: rgba(31,79,191,.12);
  color: var(--nutrir-blue);
}

/* Texto largo */
.lead{
  max-width: 55rem;
}

/* Offset para 창ncoras */
.anchor-offset{
  scroll-margin-top: 100px;
}

/* Footer */
footer a{
  color: inherit;
}
footer {
   background-color: #535c63;
}

   

/* Prato rotativo */
.plate-img{
  width: 85%;
  height: auto;
  transition: transform 1s ease-in-out, opacity 0.6s ease-in-out;
  will-change: transform;
}
.footer-logo{
  height: 140px;
  width: auto;
  opacity: .85;
  transition: opacity .3s ease;
}

.footer-logo:hover{
  opacity: 1;
}

.footer-logos{
  background-color: #535c63;
}

.footer-logo{
  max-width: 100%;
  height: auto;
  max-height: 80px;     /* desktop default */
  object-fit: contain;
  transition: transform .2s ease;
}

/* Slightly smaller on tablets */
@media (max-width: 992px){
  .footer-logo{
    max-height: 70px;
  }
}

/* Mobile */
@media (max-width: 576px){
  .footer-logo{
    max-height: 60px;
  }
}



.logo-box{
  height: 80px;               
  display: flex;
  align-items: center;
  justify-content: center;
}

.medium-logo{
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}












.theme-panel{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 260px;
  z-index: 9999;

  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);

  font: 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--nutrir-ink);
}

/* Handle */
.theme-handle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-weight: 700;
  margin: 0;
  padding: 0;

  background: transparent;
  border: 0;
  cursor: pointer;
}

.theme-chevron{
  opacity: .6;
}

/* Content collapsible */
.theme-content{
  margin-top: 10px;

  overflow: hidden;
  max-height: 520px;
  opacity: 1;

  transition: max-height .35s ease, opacity .25s ease, margin-top .25s ease;
}

/* Collapsed state */
.theme-panel.is-collapsed .theme-content{
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

/* Rows */
.theme-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
}

.theme-row input[type="color"]{
  width: 44px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Divider */
.theme-hr{
  border: none;
  border-top: 1px solid rgba(0,0,0,.1);
  margin: 10px 0;
}

.theme-subtitle{
  font-weight: 700;
  margin-bottom: 6px;
}

/* Stops (grid) */
.theme-grid{
  display: grid;
  gap: 8px;
}

.theme-stop{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.theme-stop input[type="range"]{
  grid-column: 1 / -1;
}

/* Actions */
.theme-actions{
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.theme-actions button{
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,.12);
  background: white;
  padding: 6px 10px;
  cursor: pointer;
}

 
 
 
 
 
 
 
 
 
 
 
.logo-row-ima {
     margin-left: auto;
    margin-right: auto;
    height: 60px;   /* adjust this value */
    width: auto;
}

 

 
 
 
 
 
 
 
 









.video-section{
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: max-height 1.6s ease;
}

.video-section.is-open{ max-height: 2000px; }

.video-section video{
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Overlay full block com riscas */
.video-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        background-image: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.9) 0px, rgba(255, 255, 255, 0.9) 3px, transparent 4px, transparent 8px);
    opacity: 0.8;
    transition: opacity 1s 
ease;
    pointer-events: none;
    z-index: 2;
        font-size: 5rem;
}

.video-overlay span{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: center; /* horizontal center */
  text-align: center;

  font-weight: 600;
  letter-spacing: .2px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
}

/* Quando está a tocar, esconder overlay */
.video-section.is-playing .video-overlay{
  opacity: 0;
  pointer-events: none;
}


.modal-video{
  max-width: 80%;     /* width */
}

.modal-video .modal-content{
  height: auto;
}





.side-rail{
  position: fixed;
  top: 0;
  bottom: 0;
  width: 180px;
  pointer-events: none;
  z-index: 9;
  overflow: hidden;
}

.side-rail-left{ left: 0; }
.side-rail-right{ right: 0; }

.side-food{
  position: absolute;
  left: 50%;
  max-width: 160px;
  max-height: 60vh;
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;

  /* 👇 parallax: variável que o JS atualiza */
  --parallaxY: 0px;

  transform: translateX(-50%) translateY(calc(10px + var(--parallaxY))) scale(.98);
}

.side-food.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(calc(0px + var(--parallaxY))) scale(1);
}




#ctaLoja{
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem;
   
}

/* Base (desktop-first seguro) */
.plate-wrap{
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.plate-img{
  width: 100%;
  height: auto;
  display: block;
}

/* ========================= */
/* XS — Mobile pequeno (<576px) */
/* ========================= */
@media (max-width: 575.98px){
  .plate-wrap{
    max-width: 900px;        /* quase ecrã inteiro */
  }
  .plate-img{
    max-height: 900px;       /* garante que cabe no ecrã */
    object-fit: contain;
  }
}

/* ========================= */
/* SM — Mobile grande (576–767) */
/* ========================= */
@media (min-width: 576px) and (max-width: 767.98px){
  .plate-wrap{
    max-width: 900px;
  }
  .plate-img{
    max-height: 900px;
    object-fit: contain;
  }
}

/* ========================= */
/* MD — Tablet (768–991) */
/* ========================= */
@media (min-width: 768px) and (max-width: 991.98px){
  .plate-wrap{
    max-width: 900px;
  }
}

/* ========================= */
/* LG+ — Desktop (≥992) */
/* ========================= */
@media (min-width: 992px){
  .plate-wrap{
    max-width: 900px;
  }
}


/* Tooltip base (mobile-first) */
.plate-tip{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(440px, 92%);
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  font-size: 14px;
  z-index: 5;
}

/* --- 4 tamanhos --- */

/* XS: <576px (mobile) */
@media (max-width: 575.98px){
  .plate-tip{ font-size: 14px; }
  .plate-panel{ display: none !important; } /* esconde quadro */
}

/* SM: 576–767 (mobile grande) */
@media (min-width: 576px) and (max-width: 767.98px){
  .plate-tip{ font-size: 14px; width: min(460px, 92%); }
  .plate-panel{ display: none !important; }
}

/* MD: 768–991 (tablet) */
@media (min-width: 768px) and (max-width: 991.98px){
  .plate-tip{ display: none !important; } /* tooltip off */
  .plate-panel{ display: block !important; }
}

/* LG+: ≥992 (desktop) */
@media (min-width: 992px){
  .plate-tip{ display: none !important; } /* tooltip off */
  .plate-panel{ display: block !important; }
}


#segDesc{
  min-height: 3em;    
}

#segGoal{
     min-height: 3em; 
}

#receitas .card{
  border-radius: 1rem;
}

#receitas .stretched-link{
  font-weight: 600;
  text-decoration: none;
}
#receitas .stretched-link:hover{
  text-decoration: underline;
}



/* left buttons */
.btn-recipe{
  text-align: left;
  border-radius: .9rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.btn-recipe small{
  display:block;
  opacity:.65;
  font-size:.82rem;
  margin-top:.1rem;
}

.btn-recipe:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  border-color: rgba(var(--nutrir-green-rgb), .65);
}

.btn-recipe.is-active{
  border-color: rgba(var(--nutrir-green-rgb), .9);
  background: rgba(var(--nutrir-green-rgb), .18);
}

/* recipe header chip */
.recipe-category{
  display:inline-block;
  padding:.25rem .6rem;
  border-radius:999px;
  background: rgba(var(--nutrir-yellow-rgb), .45);
  color:#6b4f14;
  font-weight:600;
  font-size:.85rem;
  margin-bottom:.35rem;
}

/* stats */
.recipe-stat{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .85rem;
  padding: .6rem .7rem;
  background: rgba(255,255,255,.65);
  text-align: center;
}
.recipe-stat__label{ font-size:.75rem; color: rgba(31,41,55,.7); }
.recipe-stat__value{ font-weight:700; }

/* lists */
.recipe-list{ margin:0; padding-left: 1.1rem; }
.recipe-steps{ padding-left: 1.2rem; }

/* nutrition grid */
.recipe-nutrition{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:.6rem;
}
.nutri-item{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .75rem;
  padding: .55rem .65rem;
  background: rgba(255,255,255,.65);
  display:flex;
  justify-content:space-between;
  gap:.5rem;
  font-size:.9rem;
}
.nutri-item span{ color: rgba(31,41,55,.72); }

@media (max-width: 991.98px){
  .recipe-nutrition{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}





.recipe-actions{
  display: flex;
  justify-content: flex-end;
  margin-bottom: .75rem;
}

.btn-print{
  display: inline-flex;
  align-items: center;
  gap: .4rem;

  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--nutrir-green-rgb), .6);

  background: rgba(var(--nutrir-green-rgb), .15);
  color: var(--nutrir-ink);

  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;

  transition: background .15s ease, transform .1s ease, box-shadow .1s ease;
}

.btn-print:hover{
  background: rgba(var(--nutrir-green-rgb), .25);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0,0,0,.08);
}

.btn-print:active{
  transform: translateY(0);
}



@media print{
  body *{
    visibility: hidden;
  }
  .recipe-view,
  .recipe-view *{
    visibility: visible;
  }
  .recipe-view{
    position: absolute;
    inset: 0;
    padding: 24px;
  }
}



#recipeCategories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}









/* NORMAL */
.btn-category {
  background-color: #f1f3f5;
  border: 1px solid #ced4da;
  color: #212529;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 500;
}

/* HOVER */
.btn-category:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #212529;
}

/* ACTIVE */
.btn-category.is-active {
  background-color: #0d6efd;      /* azul */
  border-color: #0d6efd;
  color: #ffffff;
}



.btn-recipe {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  color: #212529;
  border-radius: 1rem;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

/* HOVER */
.btn-recipe:hover {
  background-color: #f8fdfb;      /* verde muito claro */
  border-color: #a3cfbb;
  color: #212529;
}

/* ACTIVE */
.btn-recipe.is-active {
  background-color: #d1f2e5;      /* verde */
  border-color: #7bc4a4;
}





/* ===== Carousel core (must be last) ===== */
.carousel { position: relative; width: 100%; touch-action: pan-y; }

.carousel__viewport{
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
}

.carousel__track{
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
  transform: translate3d(0,0,0);
  transition: transform .35s ease;
  will-change: transform;
}

.carousel__slide{
  flex: 0 0 100% !important;
  min-width: 100% !important;
}

.carousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 5;
}

.carousel__btn--prev{ left: 12px; }
.carousel__btn--next{ right: 12px; }

.carousel__btn:hover{ background: rgba(0,0,0,.7); }

.carousel__cap{
  padding: 12px 14px;
  font-weight: 650;
  color: #111;
  border-top: 1px solid rgba(0,0,0,.08);
}

/* images */
.carousel__img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
@media (max-width: 980px){ .carousel__img{ height: 260px; } }

/* videos */
.videoFrame{
  aspect-ratio: 16 / 9;     /* 👈 forces landscape */
  width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.videoFrame video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;   /* 👈 NO cropping, always landscape */
  background: #000;
}

/* Language flag – image only */
.lang-flag-img{
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  line-height: 1;
}

.lang-flag-img img{
  display: block;
  width: 22px;
  height: auto;
  opacity: .75;
  transition: opacity .15s ease, transform .15s ease;
}

.lang-flag-img:hover img{
  opacity: 1;
  transform: scale(1.05);
}
