/* =========================================================
   CASA MORGADO — AJUSTES V16.2
   Correções pontuais de layout e carregamento de media.
   A estrutura, imagens, vídeos e efeitos originais são mantidos.
   ========================================================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   1) COLUNAS DE TEXTO/IMAGEM
   Mantém duas colunas enquanto ainda existe largura suficiente.
   Só passa para o comportamento mobile quando a área útil fica
   realmente apertada.
   --------------------------------------------------------- */
@media screen and (min-width: 981px) {
  .section.horizontal {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
  }

  .section.horizontal > .toys-flavors_left,
  .section.horizontal > .toys-flavors_right {
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    flex: 0 0 50% !important;
    box-sizing: border-box !important;
  }

  .section.horizontal > .toys-flavors_right {
    padding-left: clamp(1.25rem, 2.5vw, 2rem) !important;
    padding-right: clamp(1.25rem, 2.5vw, 2rem) !important;
    overflow: visible !important;
    align-items: flex-start !important;
    text-align: left !important;
    min-width: 0 !important;
  }

  /* O título em imagem e o texto começam exatamente no mesmo ponto. */
  .section.horizontal > .toys-flavors_right .flavours-icon2,
  .section.horizontal > .toys-flavors_right .flavours-icon3 {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    object-fit: contain !important;
  }

  .section.horizontal > .toys-flavors_right .paragraph-big {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    text-align: left !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .section.horizontal > .toys-flavors_right .satisfy-big {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Quando a largura já não permite uma coluna de texto confortável,
   passa para o mesmo modelo de uma coluna usado no mobile. */
@media screen and (max-width: 980px) {
  .section.horizontal {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .section.horizontal > .toys-flavors_left,
  .section.horizontal > .toys-flavors_right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
  }

  .section.horizontal > .toys-flavors_right {
    padding-left: clamp(1rem, 6vw, 2.25rem) !important;
    padding-right: clamp(1rem, 6vw, 2.25rem) !important;
    overflow: visible !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .section.horizontal > .toys-flavors_right .flavours-icon2,
  .section.horizontal > .toys-flavors_right .flavours-icon3 {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    object-fit: contain !important;
  }

  .section.horizontal > .toys-flavors_right .paragraph-big {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    text-align: left !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  /* Botões visíveis ficam centrados sem alterar o formato original. */
  .section.horizontal .button-2,
  .hero-text-wrapper .button-2 {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---------------------------------------------------------
   2) CONTENTORES DOS MOLDE*
   Evita que um height:100% sem altura resolvida faça a imagem/
   animação desaparecer em larguras intermédias.
   --------------------------------------------------------- */
@media screen and (max-width: 980px) {
  .toys-flavors_left {
    height: auto !important;
    min-height: 0 !important;
  }

  .molde1  { height:auto !important; aspect-ratio:1500 / 2000; min-height:1px; }
  .molde3  { height:auto !important; aspect-ratio:1454 / 1539; min-height:1px; }
  .molde4  { height:auto !important; aspect-ratio:1500 / 2000; min-height:1px; }
  .molde5  { height:auto !important; aspect-ratio:1411 / 1589; min-height:1px; }
  .molde6  { height:auto !important; aspect-ratio:1500 / 2000; min-height:1px; }
  .molde7  { height:auto !important; aspect-ratio:1500 / 2000; min-height:1px; }
  .molde8  { height:auto !important; aspect-ratio:1500 / 2000; min-height:1px; }
  .molde9  { height:auto !important; aspect-ratio:1917 / 1358; min-height:1px; }
  .molde10 { height:auto !important; aspect-ratio:1812 / 1639; min-height:1px; }
  .molde11 { height:auto !important; aspect-ratio:1289 / 1108; min-height:1px; }
  .molde12 { height:auto !important; aspect-ratio:1500 / 2000; min-height:1px; }
  .molde13 { height:auto !important; aspect-ratio:2000 / 1500; min-height:1px; }
  .molde14 { height:auto !important; aspect-ratio:1500 / 2000; min-height:1px; }
  .molde15 { height:auto !important; aspect-ratio:1500 / 2000; min-height:1px; }
  .molde16 { height:auto !important; aspect-ratio:1679 / 1012; min-height:1px; }
  .molde17 { height:auto !important; aspect-ratio:1812 / 1291; min-height:1px; }
  .molde18 { height:auto !important; aspect-ratio:1612 / 1398; min-height:1px; }
  .molde19 { height:auto !important; aspect-ratio:2048 / 1473; min-height:1px; }
  .molde20 { height:auto !important; aspect-ratio:1796 / 1391; min-height:1px; }

  .molde1, .molde3, .molde4, .molde5, .molde6, .molde7, .molde8,
  .molde9, .molde10, .molde11, .molde12, .molde13, .molde14, .molde15,
  .molde16, .molde17, .molde18, .molde19, .molde20 {
    display: block !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ---------------------------------------------------------
   3) VÍDEOS DOS MOLDE*
   No desktop continuam a aparecer pelos efeitos hover originais.
   Em ecrãs táteis não dependem de hover: ficam visíveis e podem
   reproduzir-se, mantendo autoplay/loop/muted/playsinline.
   --------------------------------------------------------- */
.molde3 .thumb-video,
.molde5 .thumb-video1,
.molde9 .thumb-video3,
.molde10 .thumb-video2 {
  max-width: 100%;
}

@media screen and (max-width: 980px) {
  .molde3 .thumb-video,
  .molde5 .thumb-video1,
  .molde9 .thumb-video3,
  .molde10 .thumb-video2 {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
    visibility: visible !important;
  }
}

@media (hover: none) and (max-width: 980px) {
  .molde3 .thumb-video,
  .molde5 .thumb-video1,
  .molde9 .thumb-video3,
  .molde10 .thumb-video2 {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ---------------------------------------------------------
   4) IMAGENS DE TÍTULO/CONTACTOS
   Mantém a proporção natural; nunca força height:100%.
   --------------------------------------------------------- */
.flavours-icon2,
.flavours-icon3 {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

/* ---------------------------------------------------------
   5) LOGÓTIPO / TÍTULO SUPERIOR
   --------------------------------------------------------- */
.hero-logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-decoration: none !important;
  line-height: 0 !important;
}

.hero-logo-link .hero_logo {
  display: block !important;
}

/* ---------------------------------------------------------
   6) EMENTA DE SEMANA / DOMINGO
   Evita sobreposição quando o texto passa a duas linhas.
   --------------------------------------------------------- */
@media screen and (max-width: 1300px) {
  .hero-top_left-button-wrapper {
    min-height: 4.5rem !important;
    height: auto !important;
  }

  .hero-top_left-button-wrapper .hero_btn {
    min-height: 4.5rem !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
  }

  .hero-top_left-button-wrapper .btn_text {
    line-height: 1.08 !important;
    white-space: normal !important;
    text-align: center !important;
    display: block !important;
  }
}

/* ---------------------------------------------------------
   7) TEXTO RESUMIDO
   --------------------------------------------------------- */
@media screen and (max-width: 1100px) {
  .paragraph-big.mobile-summary-active {
    width: min(88%, 900px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-align: left !important;
  }
}

@media screen and (max-width: 480px) {
  .paragraph-big.mobile-summary-active {
    width: 88% !important;
  }
}

/* ---------------------------------------------------------
   8) FORMULÁRIO
   --------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .form-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .form-container {
    width: min(100%, 680px) !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 30px clamp(20px, 5vw, 40px) !important;
    box-sizing: border-box !important;
  }

  .form-container h2 {
    font-size: clamp(32px, 9vw, 48px) !important;
    line-height: 1.05 !important;
  }

  .form-container .subtitle {
    font-size: clamp(18px, 4.8vw, 26px) !important;
    line-height: 1.25 !important;
  }

  .input-group input[type="text"],
  .input-group input[type="email"],
  .input-group input[type="tel"],
  .input-group textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .time-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 480px) {
  .form-section {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .form-container {
    padding: 26px 18px !important;
  }
}

/* ---------------------------------------------------------
   9) IMAGEM DO SENHOR DO COCKTAIL
   A imagem estava aplicada apenas como fundo de .toys-flavors_left.
   Removemos esse fundo, sem esconder os .molde* ou vídeos filhos.
   --------------------------------------------------------- */
.toys-flavors_left {
  background-image: none !important;
}

/* =========================================================
   V16.3 — IMAGENS DE FAIXA SEM MARGENS LATERAIS
   As imagens de título/entrada (flavours-icon2/3) devem tocar
   os dois limites do respetivo contentor/coluna. O texto não
   é alterado: continua com o seu espaçamento original.
   ========================================================= */
@media screen and (min-width: 981px) {
  .section.horizontal > .toys-flavors_right > .flavours-icon2,
  .section.horizontal > .toys-flavors_right > .flavours-icon3 {
    width: calc(100% + (2 * clamp(1.25rem, 2.5vw, 2rem))) !important;
    max-width: none !important;
    margin-left: calc(-1 * clamp(1.25rem, 2.5vw, 2rem)) !important;
    margin-right: calc(-1 * clamp(1.25rem, 2.5vw, 2rem)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}

@media screen and (max-width: 980px) {
  .section.horizontal > .toys-flavors_right > .flavours-icon2,
  .section.horizontal > .toys-flavors_right > .flavours-icon3 {
    width: calc(100% + (2 * clamp(1rem, 6vw, 2.25rem))) !important;
    max-width: none !important;
    margin-left: calc(-1 * clamp(1rem, 6vw, 2.25rem)) !important;
    margin-right: calc(-1 * clamp(1rem, 6vw, 2.25rem)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   CASA MORGADO — AJUSTE NAVBAR MOBILE v18
   A navbar estava demasiado grande após o ajuste anterior.
   Reduz para 50% do tamanho definido no v17, apenas em mobile.
   Desktop e tablet ficam inalterados.
   ========================================================= */
@media screen and (max-width: 767px) {
  .menu-link {
    font-size: clamp(51px, 14.1vw, 72px) !important;
    line-height: 0.95 !important;
    white-space: nowrap !important;
    max-width: none !important;
    overflow: visible !important;
  }
}


/* =========================================================
   V18.1 — GALERIAS MOBILE: PAINEL DE NAVEGAÇÃO SEM SOBREPOSIÇÃO
   Mantém o Splide/JS e as animações originais.
   Apenas garante que o painel de setas fica sempre visível
   abaixo da imagem e com área de toque confortável.
   ========================================================= */
@media (max-width: 768px){
    .splide.slider1.pill{
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        position: relative !important;
    }

    .splide.slider1.pill > .splide__track{
        position: relative !important;
        z-index: 1 !important;
        overflow: hidden !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center{
        position: relative !important;
        z-index: 20 !important;
        width: 100% !important;
        height: 82px !important;
        min-height: 82px !important;
        flex: 0 0 82px !important;
        margin: 0 !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #483c32 !important;
        border-top: 2px solid var(--light-yellow) !important;
        border-bottom: 2px solid var(--light-yellow) !important;
        overflow: visible !important;
        isolation: isolate !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide-arrows_wrapper{
        width: auto !important;
        height: 100% !important;
        min-height: 82px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 28px !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__embed{
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow,
    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow.splide__arrow--prev,
    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow.splide__arrow--next{
        position: relative !important;
        inset: auto !important;
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        border: 2px solid var(--light-yellow) !important;
        border-radius: 50% !important;
        background-color: #483c32 !important;
        background-image: none !important;
        box-shadow: 0 0 0 2px rgba(72,60,50,.35) !important;
        transform: none !important;
        font-size: 0 !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow--prev::before,
    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow--next::before{
        display: block !important;
        color: var(--light-yellow) !important;
        font-family: Arial, sans-serif !important;
        font-size: 30px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        width: auto !important;
        height: auto !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow--prev::before{
        content: "‹" !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow--next::before{
        content: "›" !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow--prev:active,
    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow--next:active{
        transform: scale(.94) !important;
    }
}

@media (max-width: 420px){
    .splide.slider1.pill > .splide__arrows.is--mobile-center{
        height: 78px !important;
        min-height: 78px !important;
        flex-basis: 78px !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide-arrows_wrapper{
        min-height: 78px !important;
        gap: 24px !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__embed{
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow,
    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow.splide__arrow--prev,
    .splide.slider1.pill > .splide__arrows.is--mobile-center .splide__arrow.splide__arrow--next{
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }
}


/* =========================================================
   CASA MORGADO — V20 MOBILE
   Leitura mais confortável + rodapé em linhas separadas +
   logótipo superior maior apenas em mobile.
   A navbar e as animações/imagens existentes não são alteradas.
   ========================================================= */
@media screen and (max-width: 767px) {

  /* -------------------------------------------------------
     1) TEXTO E TÍTULOS — apenas conteúdo, não a navbar
     ------------------------------------------------------- */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.12 !important;
  }

  .h1 {
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  .h2 {
    font-size: 20px !important;
    line-height: 1.12 !important;
  }

  .paragraph-big {
    font-size: 18px !important;
    line-height: 1.45 !important;
  }

  .paragraph-small2,
  .html-embed {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .btn_text {
    font-size: 28px !important;
    line-height: 1.05 !important;
  }

  .text-caps_15 {
    font-size: 190% !important;
    line-height: 1.05 !important;
  }

  .text-loop {
    font-size: 60px !important;
    line-height: 1 !important;
  }

  .text-loop:hover {
    font-size: 60px !important;
  }

  .sqsrte-scaled-text {
    font-size: 65px !important;
    line-height: 1 !important;
  }

  /* Textos correntes que não usam as classes acima. */
  .hero-text-wrapper p,
  .toys-flavors_right p,
  .footer p {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  /* -------------------------------------------------------
     2) RODAPÉ — cada ligação fica numa linha própria
     ------------------------------------------------------- */
  .html-embed .desktop {
    display: block !important;
    text-align: center !important;
    padding-top: 8px !important;
  }

  .html-embed .desktop span {
    display: block !important;
    margin: 0 0 8px 0 !important;
    white-space: normal !important;
  }

  .html-embed .desktop span:last-child {
    margin-bottom: 0 !important;
  }

  .html-embed .desktop a {
    display: inline-block !important;
  }

  /* -------------------------------------------------------
     3) LOGÓTIPO SUPERIOR — maior no mobile, sem distorção.
     Mantém a imagem original e a proporção natural.
     ------------------------------------------------------- */
  .hero-logo_wrapper {
    width: 118% !important;
    max-width: none !important;
    margin-left: -9% !important;
    margin-right: -9% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .hero-logo-link {
    width: 100% !important;
    overflow: visible !important;
  }

  .hero-logo-link .hero_logo {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
}

@media screen and (max-width: 420px) {
  .hero-logo_wrapper {
    width: 122% !important;
    margin-left: -11% !important;
    margin-right: -11% !important;
  }
}

/* =========================================================
   CASA MORGADO — V20.1 MOBILE
   Pequeno aumento de leitura + logo ligeiramente menor +
   links legais do rodapé alinhados à esquerda.
   A navbar, imagens, vídeos, galerias e animações não são alterados.
   ========================================================= */
@media screen and (max-width: 767px) {
  /* Texto e títulos: ligeiramente maiores que na V20. */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.12 !important;
  }

  .h1 {
    font-size: 30px !important;
  }

  .h2 {
    font-size: 23px !important;
  }

  .paragraph-big {
    font-size: 20px !important;
    line-height: 1.45 !important;
  }

  .paragraph-small2,
  .html-embed {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .hero-text-wrapper p,
  .toys-flavors_right p,
  .footer p {
    font-size: 18px !important;
    line-height: 1.45 !important;
  }

  .text-loop {
    font-size: 64px !important;
  }

  .text-loop:hover {
    font-size: 64px !important;
  }

  .sqsrte-scaled-text {
    font-size: 68px !important;
  }

  /* Links legais no fim da página: uma linha por opção e alinhados à esquerda. */
  .html-embed .desktop {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding-top: 8px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .html-embed .desktop span {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 0 8px 0 !important;
    white-space: normal !important;
    text-align: left !important;
  }

  .html-embed .desktop span:last-child {
    margin-bottom: 0 !important;
  }

  .html-embed .desktop a {
    display: inline-block !important;
    text-align: left !important;
  }

  /* Logo superior: ligeiramente menor que na V20, sem distorção. */
  .hero-logo_wrapper {
    width: 110% !important;
    margin-left: -5% !important;
    margin-right: -5% !important;
  }
}

@media screen and (max-width: 420px) {
  .hero-logo_wrapper {
    width: 114% !important;
    margin-left: -7% !important;
    margin-right: -7% !important;
  }
}
