/* ==========================================================
   MAKA BEACH
   STYLE.CSS
   ========================================================== */


/* ==========================================================
   VARIABILI
   ========================================================== */

:root{

    --primary:#11B5C9;
    --primary-dark:#0A90A0;

    --background:#F8FAFC;

    --white:#FFFFFF;

    --black:#222222;

    --gray:#666666;

    --light-gray:#EAEAEA;

    --shadow:0 8px 25px rgba(0,0,0,.12);

    --radius:18px;

}


/* ==========================================================
   RESET
   ========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    margin: 0;
    padding: 0;
    width: 100%;
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--black);
}

img{

    display:block;

    max-width:100%;

}

button{

    border:none;

    cursor:pointer;

    background:none;

    font-family:inherit;

}

a{

    color:inherit;

    text-decoration:none;

}

.hidden{

    display:none;

}


/* ==========================================================
   HERO
   ========================================================== */

.hero{

    position:relative;

    width:100%;

    height:42vh;

    min-height:340px;

    overflow:hidden;

    border-radius:0 0 30px 30px;

    box-shadow:var(--shadow);

    margin-bottom:20px;

}


/* Foto */

.hero-image{

    width:100%;

    height:100%;

    object-fit:cover;

}


/* Overlay */

.hero-overlay{
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.40);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;

    padding: 20px;
}


/* Logo */

.logo{
    display: block;
    width: 170px;
    height: auto;
    margin: 0 auto;
}


/* Titolo */

.hero h1{

    font-size:2.2rem;

    letter-spacing:3px;

    font-weight:700;

}


/* Sottotitolo */

.hero p{

    margin-top:8px;

    font-size:1rem;

    letter-spacing:1px;

}

/* Testo in basso a destra */

.hero-tagline{
    position: absolute;
    right: 25px;
    bottom: 25px;

    margin: 0;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;

    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}


/* ==========================================================
   CAMBIO LINGUA
   ========================================================== */

.language-switch{

    position:absolute;

    top:18px;

    right:18px;

    display:flex;

    gap:8px;

    z-index:100;

}

.language-switch button{

    background:rgba(255,255,255,.15);

    color:white;

    padding:8px 14px;

    border-radius:50px;

    border:1px solid rgba(255,255,255,.25);

    backdrop-filter:blur(10px);

    transition:.3s;

}

.language-switch button:hover{

    background:white;

    color:black;

}

.language-switch button.active{

    background:white;

    color:var(--primary);

    font-weight:600;

}

#menu-title{
    margin-bottom: 30px;
}



/* ==========================================================
   HOME
   ========================================================== */

.categories{

    max-width:1200px;

    margin:auto;

    padding:35px 20px 60px;

}

.categories h2{

    text-align:center;

    margin-bottom:35px;

    font-size:2rem;

    color:var(--black);

}

/* ==========================================================
   CATEGORY GRID
   ========================================================== */

.categories-grid{

    display:grid;

    grid-template-columns: repeat(2,1fr);

    gap:16px;

    margin-bottom:40px;
}


/* ==========================================================
   CARD CATEGORIA
   ========================================================== */

.category-card{

    display:flex;

    align-items:center;

    justify-content:space-between;

    width:100%;

    padding:18px 22px;

    background:transparent;

    border:1px solid #E5E7EB;

    border-radius:12px;

    box-shadow:none;

    transition:.25s;

}

.category-card:hover{

    border-color:var(--primary);

    transform:translateY(-2px);

    background:#FFFFFF;

}

.category-card:active{

    transform:scale(.98);

}


/* ==========================================================
   ICONA
   ========================================================== */

.category-card i{

    font-size:1rem;

    color:#555;

    margin-left:24px;

}


/* ==========================================================
   TESTO
   ========================================================== */

.category-card span{

    font-size:1rem;

    font-weight:600;

    color:var(--black);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


/* ==========================================================
   BADGE NUMERO PRODOTTI
   ========================================================== */

.count{

    position:absolute;

    top:12px;

    right:12px;

    min-width:24px;

    height:24px;

    border-radius:50%;

    background:var(--primary);

    color:white;

    font-size:.75rem;

    font-weight:600;

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:0 4px 10px rgba(17,181,201,.35);

}


/* ==========================================================
   MENU PAGE
   ========================================================== */

#menu-page{

    max-width:1200px;

    margin:auto;

    padding:20px;

}


/* ==========================================================
   CATEGORY BAR
   ========================================================== */

.category-bar{

    display:flex;

    gap:12px;

    overflow-x:auto;

    padding-bottom:10px;

    margin-bottom:25px;

    scrollbar-width:none;

}

.category-bar::-webkit-scrollbar{

    display:none;

}


/* ==========================================================
   PULSANTI CATEGORIA
   ========================================================== */

.category-btn{

    white-space:nowrap;

    padding:12px 20px;

    border-radius:999px;

    background:var(--white);

    color:var(--black);

    box-shadow:var(--shadow);

    transition:.25s;

    font-size:.95rem;

}

.category-btn:hover{

    background:var(--primary);

    color:white;

}

.category-btn.active{

    background:var(--primary);

    color:white;

    font-weight:600;

}


/* ==========================================================
   HEADER MENU
   ========================================================== */

.menu-header{

    margin:25px 0;

}

#back-home{

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:var(--primary);

    font-weight:600;

    margin-bottom:15px;

}

#back-home:hover{

    color:var(--primary-dark);

}

#category-title{

    font-size:2rem;

    font-weight:700;

    color:var(--black);

}

/* ==========================================================
   MENU CONTAINER
   ========================================================== */

#menu-container{

    display:flex;

    flex-direction:column;

    gap:22px;

    margin-bottom:50px;

}


/* ==========================================================
   PRODUCT CARD
   ========================================================== */

.product-card{

    background:var(--white);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:22px;

    transition:.25s;

}

.product-card:hover{

    transform:translateY(-3px);

}


/* ==========================================================
   HEADER PRODOTTO
   ========================================================== */

.product-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:15px;

    margin-bottom:10px;

}


/* Nome prodotto */

.product-name{

    font-size:1.15rem;

    font-weight:700;

    color:var(--black);

}


/* Prezzo */

.product-price{

    color:var(--primary);

    font-weight:700;

    font-size:1.15rem;

    white-space:nowrap;

}


/* ==========================================================
   DESCRIZIONE
   ========================================================== */

.product-description{

    color:var(--gray);

    line-height:1.6;

    margin-bottom:15px;

    font-size:.95rem;

}


/* ==========================================================
   ALLERGENI
   ========================================================== */

.allergens{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

}


/* Badge */

.allergen{

    background:#FFF3CD;

    color:#8A6D3B;

    border:1px solid #FFE69C;

    border-radius:999px;

    padding:6px 12px;

    font-size:.80rem;

    font-weight:600;

}


/* Colori specifici */

.allergen.glutine{

    background:#FFF4D6;

    color:#8B5E00;

}

.allergen.lattosio{

    background:#E8F4FF;

    color:#006AA6;

}

.allergen.uova{

    background:#FFF6C9;

    color:#8C7600;

}

.allergen.frutta{

    background:#F3E8FF;

    color:#6A1B9A;

}


/* ==========================================================
   NOTA ALLERGENI
   ========================================================== */

.allergen-note{

    background:var(--white);

    border-left:6px solid var(--primary);

    border-radius:var(--radius);

    padding:25px;

    margin-top:30px;

    box-shadow:var(--shadow);

}

.allergen-note h3{

    display:flex;

    align-items:center;

    gap:10px;

    color:var(--primary);

    margin-bottom:15px;

}

.allergen-note p{

    line-height:1.7;

    color:var(--gray);

    margin-bottom:10px;

}

.allergen-note strong{

    color:var(--black);

}

/* ==========================================================
   FOOTER
   ========================================================== */

footer{

    margin-top:60px;

    background:var(--white);

    padding:45px 20px;

    text-align:center;

    box-shadow:0 -5px 15px rgba(0,0,0,.05);

}

footer img{

    width:90px;

    margin:0 auto 20px;

}

footer p{

    color:var(--gray);

    margin-bottom:10px;

}

.social{

    display:flex;

    justify-content:center;

    gap:18px;

    margin:25px 0;

}

.social a{

    width:46px;

    height:46px;

    border-radius:50%;

    background:var(--primary);

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:1.2rem;

    transition:.25s;

}

.social a:hover{

    background:var(--primary-dark);

    transform:translateY(-3px);

}

.copyright{

    font-size:.85rem;

    color:#888;

}

/* ==========================================================
   ANIMAZIONI
   ========================================================== */

@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(15px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

@keyframes fadeOut{

    from{

        opacity:1;

    }

    to{

        opacity:0;

    }

}

.hero,
.categories,
#menu-page,
.product-card{

    animation:fadeIn .45s ease;

}


/* ==========================================================
   SCROLLBAR
   ========================================================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#f1f1f1;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}


/* ==========================================================
   SELEZIONE TESTO
   ========================================================== */

::selection{

    background:var(--primary);

    color:white;

}


/* ==========================================================
   FOCUS ACCESSIBILITÀ
   ========================================================== */

button:focus-visible,
a:focus-visible{

    outline:3px solid var(--primary);

    outline-offset:3px;

}


/* ==========================================================
   RESPONSIVE TABLET
   ========================================================== */

@media(max-width:900px){

    .hero{

        height:38vh;

    }

    .logo{

        width:180px;

    }

    .hero h1{

        font-size:1.9rem;

    }

    .categories h2{

        font-size:1.8rem;

    }

    #category-title{

        font-size:1.7rem;

    }

}


/* ==========================================================
   RESPONSIVE SMARTPHONE
   ========================================================== */

@media(max-width:768px){

    .hero{

        height:36vh;

        min-height:280px;

        border-radius:0 0 25px 25px;

    }

    .logo{

        width:160px;

    }

    .hero h1{

        font-size:1.7rem;

        letter-spacing:2px;

    }

    .hero p{

        font-size:.95rem;

    }

    .language-switch{

        top:14px;

        right:14px;

    }

    .language-switch button{

        padding:6px 12px;

        font-size:.85rem;

    }

    .category-card{

        min-height:60px;

        padding:18px 12px;

    }

    .category-card i{

        font-size:1.rem;

    }

    .category-card span{

        font-size:.98rem;

    }

    .product-card{

        padding:18px;

    }

    .product-header{

        flex-direction:column;

        gap:8px;

    }

    .product-price{

        font-size:1rem;

    }

    .product-name{

        font-size:1.05rem;

    }

    .product-description{

        font-size:.9rem;

    }

    .allergen{

        font-size:.75rem;

    }

    footer{

        padding:35px 20px;

    }

}


/* ==========================================================
   SMARTPHONE PICCOLI
   ========================================================== */

@media(max-width:430px){

    .hero{

        height:34vh;

    }

    .hero h1{

        font-size:1.5rem;

    }

    .hero p{

        font-size:.85rem;

    }

    .categories{

        padding:25px 15px 50px;

    }

    .categories h2{

        font-size:1.5rem;

    }

    .category-card{

        min-height:120px;

    }

    .category-card i{

        font-size:1.7rem;

    }

    .count{

        width:22px;

        height:22px;

        font-size:.70rem;

    }

}


/* ==========================================================
   DESKTOP LARGE
   ========================================================== */

@media(min-width:1200px){

    .hero{

        height:50vh;

    }

    .categories{

        max-width:1300px;

    }

    #menu-page{

        max-width:1300px;

    }

}


/* ==========================================================
   ALLERGENI
   ========================================================== */

.allergen.frutta-a-guscio{

    background:#F3E8FF;

    color:#6A1B9A;

}

/* ===== Poké Tags ===== */

.poke-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}

.poke-tag{
    display:inline-flex;
    align-items:center;
    padding:7px 14px;
    border-radius:999px;
    background:#f8f8f8;
    border:1px solid var(--primary);
    color:#444;
    font-size:.9rem;
    font-weight:500;
    transition:.2s ease;
}

.poke-tag:hover{
    background:#efefef;
    transform:translateY(-1px);
}

/* Spazio tra le sezioni Poké */

.poke-section{
    margin-bottom:40px;
}

.poke-section:last-child{
    margin-bottom:0;
}

/* Spazio sotto l'intestazione della Poké */

.poke-header{
    margin-bottom: 35px;
}

/* Spazio sotto ogni titolo */

.poke-section h4{
    margin-bottom: 15px;
}

.lunch-menu{
    display:grid;
    gap:20px;
}

.lunch-timer{
    display:block;
    margin-top:8px;
    font-size:.78rem;
    color:#777;
    line-height:1.3;
}

.category-card:disabled{
    opacity:.65;
    cursor:not-allowed;
}

.top-navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 35px;
    padding: 15px 25px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    z-index: 1000;
}

:root{
    --navbar-height: 80px;
}

main{
    padding-top: 50px;
}

#home-page{
    padding-top: 50px;
}

.top-navbar button{

    background:none;
    border:none;

    color:var(--primary);

    font-size:17px;
    font-weight:600;

    cursor:pointer;
}

.top-navbar button:hover{

    color:var(--primary-dark);
}

.modal{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.55);

    justify-content:center;
    align-items:center;

    z-index:2000;
}

.modal-content{

    background:white;

    width:90%;
    max-width:380px;

    padding:30px;

    border-radius:20px;

    text-align:center;

    position:relative;
}

.close-modal{

    position:absolute;

    top:15px;
    right:18px;

    font-size:28px;

    cursor:pointer;
}

.welcome-text{

    margin-top:20px;

    color:#666;

    font-style:italic;
}

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.lightbox.hidden{
    display:none;
}

#lightbox-img{
    max-width:90%;
    max-height:85%;
    border-radius:15px;
}

.close-lightbox,
.prev,
.next{
    position:absolute;
    color:white;
    font-size:40px;
    cursor:pointer;
    user-select:none;
}

.close-lightbox{
    top:20px;
    right:30px;
}

.prev{
    left:25px;
}

.next{
    right:25px;
}

.lightbox{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.9);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:9999;

}

.lightbox.hidden{

    display:none;

}

#lightbox-img{

    max-width:90%;
    max-height:90%;

    border-radius:15px;

}

.close-lightbox,
.prev,
.next{

    position:absolute;

    color:#fff;

    font-size:45px;

    cursor:pointer;

    user-select:none;

}

.close-lightbox{

    top:20px;
    right:30px;

}

.prev{

    left:30px;

}

.next{

    right:30px;

}

#lunch-categories-bar.hidden{
    display:none;
}

#lunch-bar .category-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.category-content{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.category-title{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
}

.lunch-status{
    font-size:.78rem;
    font-weight:500;
    line-height:1.3;
}

.lunch-status.waiting{
    color:#d97706;
}

.lunch-status.open{
    color:#16a34a;
}

.lunch-status.closed{
    color:#dc2626;
}

/* ====================================================== */
/* Lightbox immagini prodotti */
/* ====================================================== */

.image-modal{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.85);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:9999;

}

.image-modal img{

    max-width:90%;
    max-height:85%;

    border-radius:18px;

    box-shadow:0 15px 40px rgba(0,0,0,.4);

}

#close-image{

    position:absolute;

    top:25px;
    right:30px;

    color:white;

    font-size:45px;

    cursor:pointer;

    user-select:none;

}

/* ====================================================== */
/* Foto prodotti */
/* ====================================================== */

.product-card-content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

}

.product-info{

    flex:1;

}

.product-image{

    width:105px;

    height:auto;

    max-height:105px;

    object-fit:contain;

    cursor:pointer;

    box-shadow:none;

    background:transparent;

    border:none;

    transition:.25s;

    flex-shrink:0;

}

.product-image:hover{

    transform:scale(1.05);

}


.logo-domus{

    position: absolute;

    left: 15px;

    bottom: 30px;

    width: 120px;

    height: auto;

    opacity: .95;

}

.footer-logo{

    display:block;

    width:220px;

    height:auto;

    margin:15px auto 20px auto;

}

/* Instagram */

.instagram-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:50%;
    color:#E1306C;
    font-size:28px;
    text-decoration:none;
    transition:.2s;
}

.instagram-link:hover{
    transform:scale(1.1);
}

/* ===== Galleria ===== */

#gallery-title{
    text-align: center;
    margin-bottom: 40px;
}

.gallery{
    padding: 40px 20px;
}

.gallery-grid{
    margin-top: 20px;
}

#categories{
    padding: 30px 20px;
}

.poke-image-container{

    display:flex;

    justify-content:flex-start;

    margin:20px 0 30px;

}

.poke-image{

    width:100%;

    max-width:260px;

    border-radius:18px;

    object-fit:cover;

    cursor:pointer;

    box-shadow:0 8px 20px rgba(0,0,0,.15);

    transition:.25s;

}

.poke-image:hover{

    transform:scale(1.03);

}

.image-manu{
    margin-top:-10px;
}

/* ==========================================================
   FINE STYLE.CSS
   ========================================================== */