/* ==========================================
   SUNNY PEOPLE
   SITE-CHROME.CSS
   Header, menu e footer condivisi da tutte le pagine.
   Unico posto da modificare per il "telaio" del sito.
========================================== */


/* ==========================================
   HEADER
========================================== */

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    height:125px;

    padding:20px 55px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    background:#FFF8EF;

    border-bottom:1px solid rgba(0,0,0,.06);

    z-index:1000;

}


.logo{

    display:flex;

    align-items:center;

}


.logo img{

    height:100px;

    width:auto;

}


/* ==========================================
   NAV
========================================== */

nav{

    display:flex;

    align-items:center;

    gap:50px;

}


nav a{

    position:relative;

    color:#202020;

    font-size:20px;

    font-weight:700;

    transition:.3s ease;

}


nav a:hover,
nav a.active{

    color:#F5A300;

}


nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:3px;

    background:#F5A300;

    transition:.3s ease;

}


nav a:hover::after,
nav a.active::after{

    width:100%;

}


/* ==========================================
   PULSANTE MENU (mobile)
========================================== */

.menu-toggle{

    display:none;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:6px;

    width:46px;

    height:46px;

    border:0;

    background:none;

    cursor:pointer;

    padding:0;

}


.menu-toggle span{

    display:block;

    width:28px;

    height:3px;

    border-radius:10px;

    background:#202020;

    transition:.3s ease;

}


/* ==========================================
   FOOTER
========================================== */

footer{

    background:#202020;

    color:white;

    text-align:center;

    padding:60px 10%;

}


.footer-logo,
footer img{

    margin:0 auto 20px;

}


.footer-logo img,
footer img{

    height:80px;

    width:auto;

}


footer p{

    color:#aaa;

    margin-bottom:10px;

}


footer span{

    color:#666;

    font-size:13px;

}


.footer-legal{

    margin-top:22px;

}


.footer-legal a{

    color:#F5A300;

    font-size:13px;

    font-weight:700;

    letter-spacing:1px;

    transition:.3s ease;

}


.footer-legal a:hover{

    color:white;

}


/* ==========================================
   TASTIERA
========================================== */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible{

    outline:3px solid #F5A300;

    outline-offset:4px;

}


/* ==========================================
   TABLET / MOBILE — menu a tendina
========================================== */

@media(max-width:900px){

    header{

        height:100px;

        padding:15px 25px;

    }


    .logo img{

        height:70px;

    }


    .menu-toggle{

        display:flex;

    }


    nav{

        position:absolute;

        top:100%;

        left:0;

        width:100%;

        display:none;

        flex-direction:column;

        align-items:stretch;

        gap:0;

        background:#FFF8EF;

        border-bottom:1px solid rgba(0,0,0,.06);

        box-shadow:0 25px 45px rgba(0,0,0,.14);

        padding:6px 0 12px;

    }


    header.menu-open nav{

        display:flex;

    }


    nav a{

        font-size:19px;

        padding:16px 25px;

        border-bottom:1px solid rgba(0,0,0,.06);

    }


    nav a:last-child{

        border-bottom:0;

    }


    nav a::after{

        display:none;

    }


    nav a.active{

        color:#F5A300;

    }


    header.menu-open .menu-toggle span:nth-child(1){

        transform:translateY(9px) rotate(45deg);

    }


    header.menu-open .menu-toggle span:nth-child(2){

        opacity:0;

    }


    header.menu-open .menu-toggle span:nth-child(3){

        transform:translateY(-9px) rotate(-45deg);

    }

}


@media(max-width:600px){

    header{

        padding:12px 20px;

    }


    footer{

        padding:45px 8%;

    }

}


/* ==========================================
   MENO ANIMAZIONI SE RICHIESTO DAL SISTEMA
========================================== */

@media(prefers-reduced-motion:reduce){

    header,
    nav,
    nav a,
    nav a::after,
    .menu-toggle span,
    footer,
    footer a{

        transition:none !important;

    }

}
