* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

header {
    width: 100%;
    background-color: #000;
    padding: 18px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    border-bottom: 2px solid #333;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color .3s;
}

header nav a:hover { color: #ffb347; }

.hero, .hero-content {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
    background-color: #000;
}

.logo-principale {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.hero-content h1 {
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    padding: 20px;
}

.hero-content p {
    color: #fff;
    font-size: 18px;
    line-height: 1.7;
    max-width: 850px;
    margin: 20px auto;
    padding: 0 20px;
}

.chi-siamo, .servizi, .marchi, .offerte, .galleria {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 70px 30px;
    text-align: center;
}

.chi-siamo h2, .servizi h2, .marchi h2, .offerte h2, .galleria h2 {
    color: #fff;
    font-size: 36px;
    margin: 0 0 25px;
}

.chi-siamo p {
    max-width: 850px;
    margin: 15px auto;
    color: #fff;
    font-size: 18px;
    line-height: 1.8;
}

.servizi > p, .marchi > p, .offerte-intro, .galleria > p {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
}

.servizi-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.servizio {
    background: #1a1a1a;
    color: #fff;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 15px;
    text-align: center;
    transition: .3s;
}

.servizio:hover, .offerta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,255,255,.10);
}

.servizio h3, .servizio p { color: #fff; }
.servizio p { line-height: 1.6; }

.marchi-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.marchio {
    background: #fff;
    border-radius: 12px;
    min-height: 125px;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    transition: transform .3s, box-shadow .3s;
}

.marchio img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: 85px;
    object-fit: contain;
}

.marchio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,255,255,.15);
}


/* PERCHÉ SCEGLIERE FINIZIO IMPIANTI */
.perche-noi {
    width: 100%;
    background: #080808;
    color: #fff;
    padding: 70px 30px;
    text-align: center;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}
.perche-noi h2 {
    color: #fff;
    font-size: 36px;
    margin: 0 0 20px;
}
.perche-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #ccc;
    font-size: 18px;
    line-height: 1.6;
}
.vantaggi-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.vantaggio {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px 20px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.vantaggio:hover {
    transform: translateY(-5px);
    border-color: #777;
    box-shadow: 0 8px 20px rgba(255,255,255,.08);
}
.vantaggio-icona { font-size: 42px; margin-bottom: 15px; }
.vantaggio h3 { color: #fff; font-size: 21px; margin: 0 0 14px; }
.vantaggio p { color: #ccc; font-size: 16px; line-height: 1.7; margin: 0; }
.pulsante-perche-noi {
    display: inline-block;
    background: #25d366;
    color: #071b0e;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 28px;
    border-radius: 8px;
    transition: transform .3s, background .3s;
}
.pulsante-perche-noi:hover { background: #1ebe5d; transform: translateY(-3px); }

/* OFFERTE */
.offerte-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.offerta {
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #383838;
    border-radius: 15px;
    text-align: center;
    transition: .3s;
}

.offerta > img {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.offerta-contenuto { padding: 24px; }
.offerta h3 { margin: 0 0 12px; font-size: 23px; }
.offerta p { color: #eee; line-height: 1.5; }

.offerta .prezzo {
    margin: 8px 0 20px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
}

.offerta-cta {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    background: #1677c8;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background .3s;
}

.offerta-cta:hover { background: #105a99; }

.prezzi-nota {
    max-width: 900px;
    margin: 28px auto 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.klarna-nota {
    max-width: 760px;
    margin: 28px auto 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #171717;
    border: 1px solid #333;
    border-radius: 12px;
    color: #eee;
    font-size: 14px;
}

.klarna-scritta {
    display: inline-block;
    color: #17120f;
    background: #ffb3c7;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 800;
}

/* GALLERIA */
.galleria-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.galleria-container img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #333;
    transition: transform .3s;
}

.galleria-container img:hover { transform: scale(1.02); }

/* FOOTER */
.footer-basic {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-basic footer { width: 100%; margin: 0 auto; }

.footer-basic .social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.footer-basic .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    border: 1px solid #444;
    border-radius: 50%;
    transition: .3s;
}

.footer-basic .social a:hover {
    color: #25d366;
    border-color: #25d366;
    transform: translateY(-5px);
}

.footer-basic .copyright { margin-top: 25px; font-size: 14px; color: #fff; }
.footer-basic .footer-text { color: #ccc; font-size: 14px; margin-top: 10px; }

@media (max-width: 900px) {
    .servizi-container, .vantaggi-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .marchi-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .galleria-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    header { padding: 14px 10px; }
    header nav { gap: 12px 16px; }
    header nav a { font-size: 13px; }
    .hero-content h1 { font-size: 29px; }
    .hero-content p { font-size: 16px; }
    .chi-siamo, .servizi, .marchi, .offerte, .galleria, .perche-noi { padding: 45px 15px; }
    .chi-siamo h2, .servizi h2, .marchi h2, .offerte h2, .galleria h2, .perche-noi h2 { font-size: 29px; }
    .servizi-container, .offerte-container, .vantaggi-container { grid-template-columns: 1fr; gap: 18px; }
    .marchi-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .marchio { min-height: 100px; padding: 12px; }
    .marchio img { height: 70px; }
    .offerta > img { height: 210px; }
    .galleria-container { grid-template-columns: 1fr; }
    .galleria-container img { height: 230px; }
    .footer-basic { padding: 30px 15px; }
    .footer-basic .social { gap: 18px; }
    .footer-basic .social a { width: 45px; height: 45px; font-size: 24px; }
}


/* =================================
   PULSANTE WHATSAPP SEMPRE VISIBILE
================================= */
.whatsapp-fisso {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: #25D366;
    color: #071b0e;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-fisso i {
    font-size: 27px;
    line-height: 1;
}

.whatsapp-fisso:hover {
    background: #1ebe5d;
    color: #000000;
    transform: translateY(-4px);
}

.whatsapp-fisso:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .whatsapp-fisso {
        right: 14px;
        bottom: 86px;
        padding: 13px 16px;
        font-size: 14px;
    }
    .whatsapp-fisso i {
        font-size: 25px;
    }
}


/* =================================
   INSTALLATORE AUTORIZZATO BAXI LUNATEAM
================================= */
.baxi-lunateam {
    padding: 65px 20px;
    background: #151515;
    color: #ffffff;
    text-align: center;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}
.baxi-lunateam-contenuto {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 30px;
    border: 1px solid #666666;
    border-radius: 14px;
    background: #202020;
}
.baxi-lunateam-etichetta {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 13px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.baxi-lunateam h2 {
    margin: 0 0 18px;
    font-size: 32px;
    color: #ffffff;
}
.baxi-lunateam p {
    max-width: 760px;
    margin: 0 auto 25px;
    color: #e5e5e5;
    line-height: 1.7;
}
.baxi-lunateam-cta {
    display: inline-block;
    padding: 13px 22px;
    border: 1px solid #ffffff;
    border-radius: 6px;
    color: #111111;
    background: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.baxi-lunateam-cta:hover { background: transparent; color: #ffffff; }
@media (max-width: 600px) {
    .baxi-lunateam { padding: 45px 15px; }
    .baxi-lunateam-contenuto { padding: 28px 18px; }
    .baxi-lunateam h2 { font-size: 27px; }
}


/* =================================
   LA NOSTRA STORIA
================================= */
.storia {
    padding: 70px 20px;
    background: #101010;
    color: #ffffff;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}
.storia-contenuto {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px 44px;
    background: #1b1b1b;
    border: 1px solid #444444;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,.22);
}
.storia-etichetta {
    margin: 0 0 12px;
    color: #cfcfcf;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}
.storia h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 36px;
    text-align: center;
}
.storia h3 {
    margin: 0 auto 30px;
    color: #dddddd;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}
.storia p {
    margin: 0 0 17px;
    color: #e5e5e5;
    font-size: 16px;
    line-height: 1.8;
}
.storia .storia-finale {
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid #555555;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}
@media (max-width: 600px) {
    .storia { padding: 45px 15px; }
    .storia-contenuto { padding: 28px 20px; }
    .storia h2 { font-size: 29px; }
    .storia h3 { font-size: 16px; }
    .storia p { font-size: 15px; }
    .storia .storia-finale { font-size: 16px; }
}
