/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#f5f7fa;
    color:#222;
    line-height:1.6;
}

/* NAVBAR */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(0,0,0,.08);
    z-index:1000;
}

/* Logo */

.logo-container{
    position:absolute;
    left:30px;
    display:flex;
    align-items:center;
    gap:12px;
}

.logo-img{
    width: 190px;
    height:190px;
    object-fit:contain;
}

.logo-text{
    color:#0d1b2a;
    font-size:22px;
    font-weight:700;
    letter-spacing:1px;
}

/* Menu */

nav{
    display:flex;
    gap:40px;
}

nav a{
    color:#0d1b2a;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    color:#ff8c00;
}

/* SOCIAL NAVBAR */

.socials{
    position:absolute;
    right:90px;
    display:flex;
    gap:12px;
    align-items:center;
}

.socials a{
    width:40px;
    height:40px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    color:#0d1b2a;
    background:#f3f4f6;
    border-radius:50%;
    font-size:18px;
    transition:all .3s ease;
}

.socials a:hover{
    background:#ff8c00;
    color:white;
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(255,140,0,.35);
}

/* Menu telefono */

.menu-btn{
    position:absolute;
    right:25px;
    display:none;
    background:none;
    border:none;
    color:#0d1b2a;
    font-size:30px;
    cursor:pointer;
}

/* HERO CON SLIDER */

.hero{
    position:relative;
    height:100vh;
    overflow:hidden;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.hero-slider{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:0;
}

.hero-slider img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    opacity:0;
    transition:opacity 1.2s ease-in-out;
}

.hero-slider img.active{
    opacity:1;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(13,27,42,.45);
    z-index:1;
}

.overlay{
    position:relative;
    z-index:2;
    max-width:700px;
    padding:20px;
    color:white;
}

/* BOTTONE */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    background:linear-gradient(135deg,#ff8c00,#ff6a00);
    color:white;

    padding:16px 34px;

    border-radius:50px;

    text-decoration:none;
    font-weight:600;
    font-size:16px;

    box-shadow:0 12px 30px rgba(255,106,0,.35);

    transition:all .35s ease;
}

.btn:hover{
    transform:translateY(-4px) scale(1.02);
    box-shadow:0 18px 35px rgba(255,106,0,.45);
}

.btn:active{
    transform:scale(.98);
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:16px;
    flex-wrap:wrap;
    margin-top:10px;
}

.btn-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:16px 34px;
    border:2px solid white;
    border-radius:50px;
    color:white;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
    backdrop-filter:blur(8px);
}

.btn-outline:hover{
    background:white;
    color:#0d1b2a;
}


/* CHI SIAMO */

.about{
    background:#e9edf2;
    padding:110px 10%;
}

.about-container{
    display:grid;
    grid-template-columns:3fr 2fr;
    gap:40px;
    align-items:stretch;
}

.about-text{
    background:transparent;
    padding:0;
    border:none;
    box-shadow:none;
}

.about-text h2{
    text-align:left;
    margin-bottom:25px;
    color:#0d1b2a;
}

.about-text p{
    margin-bottom:20px;
    color:#475569;
    line-height:1.8;
}

.about-image{
    height:100%;
}

.about-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.about-box h3{
    margin-bottom:20px;
    color:white;
}

.about-box ul{
    list-style:none;
}

.about-box li{
    margin:14px 0;
}

/* SEZIONI */

.section{
    padding:100px 10%;
}

.section h2{
    text-align:center;
    margin-bottom:50px;
    font-size:2.2rem;
    color:#0d1b2a;
}

/* CARD SERVIZI */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.card{
    background:white;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transition:.35s;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.card img{
    width:100%;
    height:190px;
    object-fit:cover;
    transition:transform .4s ease;
}

.card:hover img{
    transform:scale(1.06);
}

.card h3,
.card p{
    padding:0 25px;
}

.card h3{
    margin:22px 0 12px;
    color:#0d1b2a;
}

.card p{
    padding-bottom:25px;
    color:#475569;
}

/* GALLERIA SLIDER */

.slider{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.slider-track{
    display:flex;
    transition:transform .6s ease-in-out;
}

.slider-track img{
    min-width:100%;
    height:500px;
    object-fit:cover;
    cursor:pointer;
}

.prev,
.next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:rgba(13,27,42,.75);
    color:white;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
    z-index:10;
}

.prev{ left:15px; }
.next{ right:15px; }

.prev:hover,
.next:hover{
    background:#ff8c00;
}

/* I NOSTRI LAVORI */

#galleria{
    background:#e2e6ea;
}

.works-container{
    display:grid;
    grid-template-columns:1fr 1.5fr;
    gap:50px;
    align-items:center;
}

.works-text{
    padding:20px 10px;
}

.works-text h2{
    text-align:left;
    margin-bottom:25px;
    font-size:2.5rem;
    color:#0d1b2a;
}

.works-text p{
    margin-bottom:18px;
    color:#475569;
    line-height:1.8;
}

.works-text strong{
    color:#0d1b2a;
}

.works-container .slider{
    width:100%;
}

/* CONTATTI */

.contacts{
    background:#0d1b2a;
}

.contacts h2{
    color:white;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
    margin-top:40px;
}

.contact-card{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.12);
    padding:35px;
    border-radius:20px;
    text-align:center;
    color:white;
    transition:.35s;
}

.contact-card:hover{
    transform:translateY(-8px);
    background:rgba(255,255,255,.12);
}

.contact-card .icon{
    font-size:42px;
    margin-bottom:15px;
}

.contact-card h3{
    margin-bottom:15px;
}

.contact-card p{
    margin:8px 0;
}

/* PULSANTE MAPS */

.maps-btn{
    display:inline-block;
    margin-top:15px;
    padding:10px 18px;
    background:white;
    color:#0d1b2a;
    text-decoration:none;
    font-weight:600;
    border-radius:12px;
    transition:.3s;
}

.maps-btn:hover{
    background:#ff8c00;
    color:white;
}

/* FOOTER */

footer{
    text-align:center;
    padding:30px;
    background:#08111d;
    color:white;
}

footer p{
    margin-top:8px;
}

.footer-link{
    color:#ff8c00;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.footer-link:hover{
    color:white;
    text-decoration:underline;
}

/* ANIMAZIONI */

.reveal{
    opacity:0;
    transform:translateY(40px);
    transition:1s;
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}

/* LIGHTBOX */

#lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

#lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:12px;
}

#close{
    position:absolute;
    top:30px;
    right:40px;
    color:white;
    font-size:50px;
    cursor:pointer;
}

/* WHATSAPP */

.whatsapp{
    position:fixed;
    bottom:25px;
    right:25px;
    width:65px;
    height:65px;
    background:#25D366;
    color:white;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:30px;
    text-decoration:none;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
    transition:.3s;
    z-index:999;
}

.whatsapp:hover{
    transform:scale(1.1);
}

/* RESPONSIVE */

@media (max-width:768px){

    .navbar{
        height:85px;
        padding:0 20px;
    }

    .logo-container{
        left:20px;
        gap:10px;
    }

    .logo-img{
        width:250px;
        height:200px;
    }

    .logo-text{
        font-size:20px;
    }

    .menu-btn{
        display:block;
        font-size:32px;
    }

    nav{
    position:absolute;
    top:85px;
    left:0;
    width:100%;
    background:white;
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:0;
    gap:0; //perfezionare lo spazio nel pannelo scelte
    border-bottom:1px solid rgba(0,0,0,.08);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

    nav.active{
        display:flex;
    }

    nav a{
    width:100%;
    color:#0d1b2a;
    text-decoration:none;
    text-align:center;
    padding:18px 20px;
    margin:0;
    border-bottom:1px solid #e5e7eb;
    font-weight:600;
}

    nav a:last-child{
        border-bottom:none;
    }

    nav a:hover{
        background:#f5f7fa;
        color:#ff8c00;
    }

    .socials{
        display:none;
    }

    .hero h1{
        font-size:2.3rem;
    }

    .hero p{
        font-size:1rem;
    }

    .section{
        padding:80px 8%;
    }

    .slider-track img{
        height:260px;
    }

    .about-container{
        grid-template-columns:1fr;
    }

    .about-text h2{
        text-align:center;
    }
}

/* Banner cookie */

.cookie-banner{
    position:fixed;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    width:calc(100% - 40px);
    max-width:760px;
    z-index:99999;
}

.hidden{
    display:none;
}

.cookie-content{
    background:white;
    color:#0d1b2a;
    border-radius:22px;
    padding:24px;
    box-shadow:0 20px 45px rgba(0,0,0,.20);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    animation:cookieSlideUp .35s ease;
}

.cookie-content h3{
    margin-bottom:8px;
}

.cookie-content p{
    color:#475569;
    line-height:1.5;
}
.cookie-buttons{
    display:flex;
    gap:10px;
}

.btn-secondary{
    background:white;
    color:#0d1b2a;
    border:1px solid #d1d5db;
    padding:12px 22px;
    border-radius:50px;
    cursor:pointer;
    transition:.3s;
}

.btn-secondary:hover{
    background:#f3f4f6;
}

.btn-primary{
    background:#ff8c00;
    color:white;
    border:none;
    padding:12px 22px;
    border-radius:50px;
    cursor:pointer;
    transition:.3s;
}

.btn-primary:hover{
    background:#e56a00;
}

/* Mappa */

.map-placeholder{
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 50px 25px;
    text-align: center;
    color: #4b5563; 
}

.map-placeholder h3{
    color: #111827; 
    margin: 15px 0 10px;
}


/* Contenuto della Privacy */

.privacy-page{
    max-width:900px;
    margin:50px auto 70px;
    padding:0 20px;
}

.privacy-page h2{
    color:#0d1b2a;
    font-size:28px;
    margin:45px 0 18px;
    font-weight:700;
    position:relative;
}

.privacy-page h2::after{
    content:"";
    display:block;
    width:85px;
    height:4px;
    background:#ff8c00;
    border-radius:20px;
    margin-top:10px;
}

.privacy-page p{
    color:#4b5563;
    line-height:1.9;
    text-align:justify;
    margin-bottom:16px;
}

.privacy-page strong{
    color:#0d1b2a;
}

.privacy-page a{
    color:#ff8c00;
    text-decoration:none;
    font-weight:600;
}

.privacy-page a:hover{
    text-decoration:underline;
}

.nav-links a.active{
    color:#ff8c00;
    pointer-events:none;
}



/* Hero Informativa Privacy */

.privacy-hero{
    position: relative;
    width: 100%;
    height: 220px;
    margin-top: 120px; /* spazio sotto la navbar fissa */
    overflow: hidden;
}

.privacy-hero-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.privacy-hero-overlay{
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.45);
}

.privacy-hero-content{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.privacy-hero-content h1{
    font-size: 42px;
    margin: 0;
}

.privacy-hero-content p{
    margin-top: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

/* Footer */

.site-footer{
    margin-top:70px;
    padding:30px 20px;
    border-top:1px solid #e5e7eb;
    text-align:center;
    background:#08111d;
}

.site-footer p{
    margin:6px 0;
    color:#6b7280;
    font-size:14px;
    line-height:1.6;
}

/* PULSANTE COOKIE FLOTTANTE */

.cookie-fab{
    position:fixed;
    bottom:22px;
    left:22px;
    width:58px;
    height:58px;
    border:none;
    border-radius:50%;
    background:#1f2937;
    color:white;
    font-size:26px;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    transition:all .3s ease;
    z-index:99998;
}

.cookie-fab:hover{
    transform:translateY(-3px) scale(1.08);
    background:#ff8c00;
}

.cookie-fab:active{
    transform:scale(.96);
}

@media(max-width:768px){
    .cookie-fab{
        width:54px;
        height:54px;
        font-size:24px;
        bottom:18px;
        left:18px;
    }
        /* I NOSTRI LAVORI */

    .works-container{
        grid-template-columns:1fr;
        gap:30px;
    }

    .works-text{
        padding:0;
        text-align:center;
    }

    .works-text h2{
        text-align:center;
        font-size:2rem;
    }

    .works-text p{
        font-size:.95rem;
    }
    
}