@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-top: #1f1f1f;
    /* topbar più scura come l’originale */
    --accent: #c58f60;
    /* arancio/marrone originale */
    --text: #ffffff;
    --muted: #d9d9d9;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: #000;
}

/* ===== TOPBAR ===== */
header {
    background: var(--bg-top);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    height: 100px;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .3px;
}

nav {
    display: flex;
    align-items: end;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 26px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    opacity: .9;
}

nav a:hover {
    opacity: 1;
    color: var(--accent)
}

header .cta {
    background: var(--accent);
    color: #000;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: .2s ease;
}

header .cta:hover {
    filter: brightness(.9)
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: calc(100vh - 100px);
    /* tolgo l’altezza precisa dell’header */
    /* meno la topbar */
    background: url('../../img/hero.avif') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    /* centro il blocco come originale */
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    /* overlay più leggero */
}

/* contenitore interno con max-width simile */
.hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hero-content {
    justify-self: end;
    max-width: 660px;
    text-align: center;
}

.hero h5 {
    margin: 0 0 12px 0;
    color: var(--accent);
    font-weight: 500;
    font-size: 26px;
    letter-spacing: .5px;
}

.hero h1 {
    margin: 0 0 18px 0;
    font-weight: 700;
    font-size: 68px;
    line-height: 1.1;
}

.hero p {
    margin: 0 auto 22px auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 760px;
}

.btn {
    background: var(--accent);
    color: #000;
    padding: 12px 26px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: .2s ease;
    border: none;
}

.btn:hover {
    filter: brightness(.9)
}


.container_second {
    height: 550px;
    background-color: #FFFFFF;
}

/* ===== ABOUT (container_second) ===== */
.container_second {
    background: #fff;
    color: #111;
    /* testi scuri su fondo chiaro */
    display: block;
}

.about {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 90px 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    /* immagine leggermente più grande */
    gap: 60px;
    align-items: center;
}

.about-media {
    position: relative;
}

.about-media img {
    width: 100%;
    display: block;
    border: 1px solid #e6e1d8;
    /* sottile bordo chiaro come reference */
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}

/* barretta d’accento sotto l’immagine */
.about-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0%;
    height: 10px;
    bottom: -14px;
    background: var(--accent);
}

/* testi */
.about-copy h6 {
    margin: 0 0 12px 0;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .15em;
    font-size: 18px;
}

.about-copy h2 {
    margin: 0 0 18px 0;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.1;
    color: #111;
}

.about-copy p {
    margin: 0;
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.7;
}


/* ===== SERVICES (container_third) ===== */
/* Rimuovi eventuale height fisso dalla tua .container_third */
.container_third {
    background:
        linear-gradient(#F6F3EE 0 260px, #ffffff 260px 100%);
    color: #111;
    height: auto;
    /* importante: nessuna altezza fissa */
}

.services {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 60px 24px 90px;
    /* spazio top dentro la fascia beige, e bottom su bianco */
}

/* Testate: titolo a sinistra, testo a destra */
.services-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 36px;
}

.services-head h6 {
    margin: 0 0 10px 0;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .15em;
    font-size: 18px;
}

.services-head h2 {
    margin: 0;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.1;
    color: #111;
}

.services-head p {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

/* Griglia Card */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 18px 0 12px;
}

.service-card {
    text-align: center;
}

.svc-media {
    width: 100%;
    aspect-ratio: 16/10;
    /* proporzione simile allo shot */
    overflow: hidden;
    margin: 0 0 16px 0;
    display: block;
    background: #ddd;
    border: 1px solid #e6e1d8;
}

.svc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    margin: 12px 0 12px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #111;
}

.service-card p {
    margin: 0 auto;
    max-width: 420px;
    color: #4a4a4a;
    font-size: 15.5px;
    line-height: 1.8;
}

/* CTA */
.services-cta {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-svc {
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 13px;
    padding: 12px 28px;
}



















/* ===== REVIEWS (container_four) ===== */
.container_four {
    background:
        linear-gradient(#F6F3EE 0 250px, #ffffff 250px 100%);
    color: #111;
}

.reviews {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 60px 24px 90px;
}

/* Testata */
.reviews-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 28px;
}

.reviews-eyebrow {
    margin: 0 0 8px 0;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .12em;
}

.reviews-head h2 {
    margin: 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    color: #111;
}

.reviews-intro {
    margin: 0;
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

/* Griglia cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 18px;
}

/* Card */
.review-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
    overflow: hidden;
    border: 1px solid #eee3d6;
}

.rc-topbar {
    height: 6px;
    background: var(--accent);
}

.rc-body {
    padding: 18px 20px 22px;
}

.rc-meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.rc-name {
    font-weight: 600;
}

.rc-date {
    font-size: 12px;
    color: #777;
}

/* Badge Google */
.rc-badge {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}


/* Stelle */
.rc-stars {
    color: #f5b301;
    /* giallo stelle */
    letter-spacing: 2px;
    margin: 8px 0 10px;
    font-size: 18px;
}

/* Testo recensione */
.rc-text {
    margin: 0;
    color: #3e3e3e;
    line-height: 1.7;
    font-size: 15.5px;
}


/* ===== MAP SECTION ===== */
.container_five {
    background: #fff;
    color: #111;
}

.map-info {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 500px;
}

.map {
    width: 100%;
    height: 100%;
}

.info {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 24px 0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.info-list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

/* CTA WhatsApp */
.btn-whatsapp {
    background: var(--accent);
    color: #000;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    transition: .2s ease;
}

.btn-whatsapp:hover {
    background: #20ba57;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1f1f1f;
    color: #d9d9d9;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #fff;
}

.footer-col h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #fff;
}

.footer-col p {
    margin: 4px 0;
    line-height: 1.6;
}

.footer-col a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-col a:hover {
    text-decoration: underline;
}



/* ==== RESPONSIVE TABLET & MOBILE ==== */

/* ——— fino a 1200px: riduco titoli e spaziature ——— */
@media (max-width:1200px) {
    .hero h1 {
        font-size: 56px;
    }

    .about-copy h2,
    .services-head h2,
    .reviews-head h2 {
        font-size: 56px;
    }
}

/* ——— fino a 992px: layout a 1 colonna dove serve, nav più compatto ——— */
@media (max-width:992px) {

    /* Header / nav */
    header {
        padding: 12px 16px;
        height: auto;
    }

    nav ul {
        gap: 16px;
    }

    /* se serve, abilita scroll orizzontale del menu */
    nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav ul {
        flex-wrap: nowrap;
    }

    /* Hero */
    .hero {
        height: auto;
        padding: 72px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        justify-self: center;
        max-width: 720px;
    }

    .hero h5 {
        font-size: 22px;
    }

    .hero h1 {
        font-size: 48px;
    }

    /* About */
    .about {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 64px 20px 80px;
    }

    /* Services */
    .services-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .svc-media {
        aspect-ratio: 16/9;
    }

    /* Reviews */
    .reviews-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Mappa */
    .map-info {
        grid-template-columns: 1fr;
    }

    .map {
        height: 340px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* ——— fino a 768px: mobile “grande” ——— */
@media (max-width:768px) {

    /* Bottoni a tutta larghezza dove ha senso */
    .btn,
    .btn-svc,
    .btn-whatsapp {
        width: 100%;
        text-align: center;
    }

    /* Reviews: una colonna */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Footer a colonna singola */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ——— fino a 560px: smartphone ——— */
@media (max-width:560px) {

    /* Tipografia più piccola */
    .hero h1 {
        font-size: 38px;
    }

    .about-copy h2,
    .services-head h2,
    .reviews-head h2 {
        font-size: 40px;
    }

    .services-head h6,
    .about-copy h6 {
        font-size: 16px;
    }

    /* Spaziature ridotte */
    .services {
        padding: 48px 16px 70px;
    }

    .reviews {
        padding: 48px 16px 70px;
    }

    .info {
        padding: 28px 16px;
    }

    /* Barra sotto immagine "about" leggermente più corta */
    .about-media::after {
        right: 40%;
        height: 8px;
        bottom: -10px;
    }
}


/* ===== HAMBURGER ===== */
.nav-toggle {
    display: none;
    /* desktop: nascosto */
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease, width .25s ease;
}

/* Stato attivo (menu aperto) → X */
.menu-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
}

.menu-open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Pannello mobile */
@media (max-width:992px) {
    header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .nav-toggle {
        display: flex;
    }

    /* nascondo la nav desktop */
    nav {
        position: fixed;
        inset: 0 0 0 auto;
        /* lato destro */
        width: min(82vw, 340px);
        background: #111;
        /* pannello */
        transform: translateX(100%);
        transition: transform .25s ease;
        box-shadow: -8px 0 24px rgba(0, 0, 0, .35);
        display: block;
        padding: 18px 20px;
    }

    /* overlay pagina quando il menu è aperto */
    .menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        backdrop-filter: saturate(120%) blur(1px);
        z-index: 40;
    }

    .menu-open nav {
        transform: translateX(0);
        z-index: 45;
    }

    /* lista voci */
    nav ul {
        display: block;
        margin: 0;
        padding: 12px 0 0;
    }

    nav li {
        list-style: none;
    }

    nav a {
        display: block;
        padding: 14px 10px;
        border-radius: 8px;
        font-size: 16px;
    }

    nav a:hover {
        background: rgba(197, 143, 96, .12);
        /* usa var(--accent) soft */
        color: #fff;
    }

    /* sposto CTA WhatsApp dentro header a sinistra del burger (o nascondi) */
    header .cta {
        display: none;
    }

    /* se vuoi nasconderla su mobile */
}

/* accessibilità: se l’utente preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {

    .nav-toggle .bar,
    nav {
        transition: none !important;
    }
}

/* nascondi SEMPRE la X di default */
.nav-close {
    display: none;
}

/* mobile */
@media (max-width:992px) {

    /* mostra la X solo quando il pannello è aperto */
    .menu-open nav .nav-close {
        display: block;
    }
}

/* X di chiusura nel pannello mobile */
.nav-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    padding: 8px;
    cursor: pointer;
    opacity: .9;
}

.nav-close:hover {
    opacity: 1;
}

/* assicurati che <nav> sia contenitore posizionato */
@media (max-width:992px) {
    nav {
        position: fixed;
        /* già presente */
    }
}

.container_pre_about {
    background: #fff
}

.container_about {
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* img a sinistra, testo a destra */
    grid-auto-rows: auto;
    /* niente altezze fisse */
    gap: 14px;
    padding: 64px 0;
    width: min(1100px, 92vw);
    margin: auto;
}

/* IMG a coprire il box senza deformarsi */
.about_first {
    min-height: 360px;
    /* stessa “presenza” della preview */
}

.about_first img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Colonna testo (titolo grande + paragrafi) */
.about_second {
    color: #000;
    align-self: center;
    /* centrato verticalmente come nella foto */
    padding: 12px 8px 12px 0;
    max-width: 640px;
}

.about_second h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    margin: 0 0 14px 0;
    letter-spacing: .5px;
}

.about_second p {
    margin: 0 0 14px 0
}

/* Blocco sotto a tutta larghezza */
.about_third {
    grid-column: 1 / -1;
    color: #000;
    max-width: 1100px;
}

.about_third p {
    margin: 0 0 14px 0
}

/* Impedisci che il testo “esca” dai box */
.about_second,
.about_third {
    overflow-wrap: anywhere;
    /* va a capo anche su parole lunghe */
    word-break: break-word;
    /* fallback */
}

/* Mobile: una colonna */
@media (max-width: 900px) {
    .container_about {
        grid-template-columns: 1fr;
    }

    .about_second {
        padding: 6px 0
    }

    .about_first {
        min-height: 260px
    }
}


.about-hero {
    position: relative;
    width: 100%;
    height: 300px;
    /* puoi regolare l’altezza */
    background: url("../../img/hero.avif") center/cover no-repeat;
    /* sostituisci col tuo path */
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-overlay {
    background: rgba(0, 0, 0, 0.35);
    /* leggera ombra per far risaltare il testo */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero h2 {
    color: #fff;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: 2px;
}


.container_five_contatti {
    background: #fff;
    color: #111;
    padding-top: 50px;
    padding-right: 50px;
    padding-left: 50px;
    padding-bottom: 50px;
}