/* ==========================================
   FONT IN LOCALE (cartella "fonts"): nessun collegamento ai server di Google
   Poppins e Inter, licenza SIL Open Font License (file LICENZA nella cartella)
   ========================================== */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-regular.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-semibold.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-bold.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/poppins-extrabold.woff') format('woff');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-regular.woff') format('woff');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-semibold.woff') format('woff');
}

/* ==========================================
   NATURA WASH - FOGLIO DI STILE
   Colori principali:
   blu #0077b6 · azzurro #00b4d8 · verde acqua #2a9d8f · notte #0f172a
   ========================================== */

/* ==========================================
   RESET E BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

.nowrap {
    white-space: nowrap;
}

/* Le sezioni non finiscono nascoste sotto la barra fissa quando si clicca il menu */
section[id] {
    scroll-margin-top: 140px;
}

/* ==========================================
   NAVBAR CON EFFETTO VETRO
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    /* In cima alla pagina: quasi opaca (90%) */
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: background-color 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px clamp(24px, 5vw, 8%);
    gap: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    z-index: 1000;
}

.logo img {
    height: clamp(70px, 7vw, 100px);
    width: auto;
    display: block;
}

/* Quando si scorre la pagina: più trasparente (72%), effetto vetro */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.72);
}

.logo {
    flex-shrink: 1;
    min-width: 0;
}

.logo img {
    max-width: 100%;
}

.nav-menu {
    display: flex;
    flex-shrink: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    margin-left: clamp(16px, 1.6vw, 26px);
    white-space: nowrap;
    font-weight: 700;
    font-size: clamp(16px, 1.35vw, 19px);
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #00b4d8;
}

/* ==========================================
   TASTO HAMBURGER
   ========================================== */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: #0f172a;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    left: 8px;
    width: calc(100% - 16px);
}

.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 27px; }

/* Animazione ad "X" quando il menu è aperto */
.hamburger.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(42, 157, 143, 0.45), rgba(15, 23, 42, 0.85)),
                url('laundry-web.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 180px 24px 60px;
    text-align: center;
    color: white;
}

.hero-content {
    width: 100%;
    max-width: 850px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.hero-sub {
    font-size: 62px;
    margin-bottom: 35px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
}

/* Riquadro orari e pulsante "Come Arrivare": stessa larghezza e altezza */
.hero-actions .orari,
.hero-actions .btn {
    width: 300px;
    max-width: 100%;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.hero-actions .orari strong {
    margin-right: 0.35em;
}

.orari {
    font-size: 15px;
    background: #2a9d8f;
    color: white;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(42, 157, 143, 0.35);
    min-width: 260px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #00b4d8;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-family: inherit;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.35);
    transition: all 0.3s ease;
    min-width: 260px;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #0077b6;
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.5);
}

/* ==========================================
   SEZIONI
   ========================================== */
.section {
    padding: 150px 24px;
    text-align: center;
}

.section h2 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 70px;
    padding: 0 10px;
    color: #0077b6;
}

#servizi { background-color: #ffffff; }

#green {
    background: linear-gradient(rgba(42, 157, 143, 0.45), rgba(15, 23, 42, 0.85)),
                url('natura-web.jpg') no-repeat center center/cover;
}
#green h2 { color: #ffffff; }

#contatti { background-color: #f1f5f9; }

/* ==========================================
   GRIGLIE E CARD
   ========================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- SERVIZI: card blu con icona centrata sullo sfondo --- */
.card {
    background-color: #0077b6;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 28px;
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 119, 182, 0.25);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.laundry-card    { background-image: url('serv1.png'); background-size: 60%; }
.pet-card        { background-image: url('serv2.png'); background-size: 63%; }
.app-service-card { background-image: url('serv3.png'); background-size: 57%; }

.card h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 2;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 119, 182, 0.35);
}

/* --- SOSTENIBILITÀ: card in vetro --- */
.card-green {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding: 50px 40px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card-green h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
}

.card-green p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.card-green:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   SEZIONE APP
   ========================================== */
#app {
    background: #0f172a;
    color: white;
}
#app h2 { color: white; }
#app p {
    color: #94a3b8;
    font-size: 20px;
    max-width: 760px;
    margin: 0 auto 40px;
}

.app-buttons {
    margin-top: 40px;
}

.btn-app {
    /* App Store e Google Play: stessa larghezza e altezza */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    max-width: 100%;
    min-height: 56px;
    padding: 12px 20px;
    text-align: center;
    vertical-align: middle;
    background-color: #ffffff;
    color: #0f172a;
    text-decoration: none;
    border-radius: 16px;
    margin: 10px;
    font-weight: 800;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.btn-app:hover {
    transform: translateY(-3px);
    background-color: #00b4d8;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 180, 216, 0.4);
}

/* ==========================================
   MAPPA E CONTATTI
   ========================================== */
.map-container {
    max-width: 1200px;
    margin: 50px auto 0;
    height: 420px;
    background-color: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Riquadro mostrato prima del caricamento della mappa */
.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background:
        linear-gradient(rgba(241, 245, 249, 0.88), rgba(241, 245, 249, 0.88)),
        repeating-linear-gradient(45deg, #e2e8f0 0 2px, transparent 2px 22px);
}

.map-placeholder p {
    max-width: 440px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #475569;
}

.contact-link {
    color: #0077b6;
    font-weight: 600;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.map-link {
    font-size: 14px;
    font-weight: 700;
    color: #0077b6;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background-color: #ffffff;
    color: #1a1a1a;
    font-weight: 600;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

footer p {
    font-size: 14px;
    margin: 4px 0;
}

/* Sostenibilità: 2 colonne su schermi grandi */
@media (min-width: 769px) {
    .green-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   MENU A TRE LINEE (fino a 1200px: sotto questa
   larghezza le voci non stanno accanto al logo)
   ========================================== */
@media (max-width: 1200px) {

    .navbar {
        padding: 12px 5%;
    }

    .logo img {
        height: clamp(40px, 8vw, 65px);
    }

    .hamburger {
        display: flex;
    }

    /* Menu a tendina sotto la barra */
    .nav-menu {
        position: fixed;
        top: 80px;
        right: 5%;
        width: 90%;
        max-width: 360px;
        background-color: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 24px;
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a {
        margin-left: 0;
        font-size: 16px;
        color: #0f172a;
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

}

/* ==========================================
   TABLET E SMARTPHONE (fino a 1024px)
   ========================================== */
@media (max-width: 1024px) {

    section[id] {
        scroll-margin-top: 80px;
    }

    .hero {
        padding: 120px 20px 40px;
    }

    .hero h1 {
        font-size: clamp(32px, 8vw, 56px);
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: clamp(22px, 6vw, 34px);
        font-weight: 600;
        letter-spacing: 1.5px;
        margin-bottom: 28px;
    }

    .orari, .btn {
        min-width: min(280px, 100%);
    }

    /* Su telefono una sotto l'altra, stessa larghezza */
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 80px 20px;
    }

    .section h2 {
        font-size: clamp(28px, 6vw, 44px);
        margin-bottom: 35px;
    }

    .grid {
        padding: 0;
        gap: 20px;
    }

    .card, .card-green {
        padding: clamp(25px, 5vw, 40px) clamp(20px, 4vw, 30px);
    }

    .map-container {
        height: clamp(280px, 50vh, 400px);
    }

    /* Card che scorrono di lato (Servizi e Sostenibilità) */
    .services-grid, .green-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 10px 15px 30px;
        margin: 0 -20px;
        gap: 15px;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar,
    .green-grid::-webkit-scrollbar {
        display: none;
    }

    .services-grid .card,
    .green-grid .card-green {
        flex: 0 0 85%;
        max-width: 350px;
        scroll-snap-align: center;
    }

    /* Su touch l'effetto "solleva" resta attaccato dopo il tocco: lo togliamo */
    .card:hover, .card-green:hover {
        transform: none;
    }
}

/* ==========================================
   HOME - SOSTENIBILITÀ: icone delle card e pulsante "Scopri di più"
   ========================================== */
/* Icona e titolo affiancati */
.green-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.green-head h3 {
    margin-bottom: 0;
    line-height: 1.25;
}

.green-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Schede della home più basse */
.green-grid .card-green {
    padding: 28px 34px;
}

.green-icon svg,
.eco-photo-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* A capo solo su telefono e tablet */
.br-mobile {
    display: none;
}

.green-more {
    margin-top: 50px;
    font-size: 18px;
    padding: 18px 40px;
    min-width: 300px;
}

/* ==========================================
   PAGINA SOSTENIBILITÀ
   ========================================== */
.eco-hero {
    min-height: 85vh;
    background: linear-gradient(rgba(42, 157, 143, 0.45), rgba(15, 23, 42, 0.85)),
                url('stream1-web.jpg') no-repeat center 30%/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 180px 24px 80px;
}

.eco-hero-content {
    max-width: 1300px;
}

.eco-hero h1 {
    font-size: min(64px, 4.6vw);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.eco-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0 auto;
}

.eco-list {
    background: #ffffff;
    padding: 120px 24px;
}

.eco-block {
    max-width: 1300px;
    margin: 0 auto 110px;
    display: grid;
    grid-template-columns: 11fr 9fr; /* 55% foto, 45% testo */
    gap: 56px;
    align-items: center;
}

.eco-block:last-child {
    margin-bottom: 0;
}

/* A blocchi alterni la foto va a destra */
.eco-block.reverse {
    grid-template-columns: 9fr 11fr;
}

.eco-block.reverse .eco-photo {
    order: 2;
}

.eco-photo {
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 119, 182, 0.18);
}

.eco-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Immagine rotonda (es. oblò): cerchio centrato nella colonna */
.eco-photo.round {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 500px;
    justify-self: center;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

/* Riquadro segnaposto finché non c'è la foto */
.eco-photo.placeholder {
    background: linear-gradient(135deg, #2a9d8f, #0077b6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.eco-photo-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-photo-icon svg {
    width: 38px;
    height: 38px;
}

.eco-text h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #0077b6;
    margin-bottom: 20px;
}

.eco-text p {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: #334155;
}

.eco-text p + p {
    margin-top: 14px;
}

.eco-text a {
    color: #0077b6;
    font-weight: 600;
}

.eco-cta {
    background: #f1f5f9;
    padding: 90px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.eco-cta .btn {
    width: 300px;
    max-width: 100%;
    min-width: 0;
}

.btn-outline {
    background-color: transparent;
    color: #0077b6;
    border: 2px solid #0077b6;
    box-shadow: none;
}

.btn-outline:hover {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .br-mobile {
        display: inline;
    }

    .green-more {
        margin-top: 30px;
    }

    .green-grid .card-green {
        padding: 22px 22px;
    }

    .green-head {
        gap: 12px;
    }

    .green-head h3 {
        font-size: clamp(18px, 4.6vw, 22px);
    }

    .eco-hero {
        min-height: 85vh;
        padding: 120px 20px 60px;
    }

    .eco-hero h1 {
        font-size: clamp(28px, 7vw, 48px);
    }

    .eco-hero p {
        font-size: 17px;
    }

    .eco-list {
        padding: 70px 20px;
    }

    /* Su telefono e tablet: foto sopra, testo sotto */
    .eco-block,
    .eco-block.reverse {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 70px;
    }

    .eco-block.reverse .eco-photo {
        order: 0;
    }

    .eco-text h2 {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 12px;
    }

    .eco-text p {
        font-size: 16px;
    }

    .eco-cta {
        flex-direction: column;
        align-items: center;
        padding: 60px 20px;
    }
}
