:root {
    /* Colori */
    --color-primary: #3b3b3b;
    --color-secondary: #e82d2d;
    --color-accent: #d6ec6b;
    --color-light: #f7f7f7;
    --color-dark: #3b3b3b;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* CORPO PAGINA */
body {
    font-family: "montserrat", sans-serif;
    font-size: 14px;
    color: #3b3b3b;
}


/* NAVBAR + CONTAINER */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #f7f7f7;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

/* LOGO */
.navbar__logo img.logo-img {
    max-height: 50px;
    width: auto;
}

/* MENU ORIZZONTALE */
.navbar__menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar__menu a {
    text-decoration: none;
    color: #3c3c3b;
    font-weight: 600;
    text-transform: uppercase;
    transition: color .2s;
}

.navbar__menu a:hover {
    color: #9795eb;
}


/* AZIONI A DESTRA */
.navbar__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ICONE (UTENTE + SEARCH) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    color: #3c3c3b;
    transition: color .2s;
}

.icon-btn:hover {
    color: #555;
}

.search-wrapper {
    position: relative;
}

.search-input {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #3c3c3b;
    display: none;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
    position: relative;
    width: 85px;
    height: 40px;
    margin-left: 20px;
    overflow: visible;
}

.lang-button {
    position: absolute;
    top: 0;
    width: 45px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    color: #f7f7f7;
    transition: background .2s, transform .2s;
    transform-origin: top center;
}

.lang-button.ita {
    left: 0;
    background: #272626;
    z-index: 1;
}

.lang-button.eng {
    left: 40px;
    background: #3c3c3b;
    z-index: 2;
}

.lang-button:hover {
    background: #3c3c3b;
    transform: scaleY(1.1);
}





/* FULLSCREEN SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary, #f7f7f7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1000;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.search-overlay__content {
    width: 100%;
    max-width: 500px;
    padding: 0 var(--space-m, 1rem);
    text-align: center;
}

.desktop-search-input {
    width: 100%;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    background: var(--color-white, #fff);
    color: var(--color-primary, #3c3c3b);
    border: none;
    outline: none;
    box-shadow: var(--box-shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
}

.desktop-search-input::placeholder {
    color: var(--color-primary, #3c3c3b);
    opacity: 0.6;
}

.search-overlay__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ff0000;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

.search-overlay__close:hover {
    color: #3c3c3b;
}


body.menu-open {
    overflow: hidden;
}


.hamburger-btn {
    display: none;
    position: relative;
}


.hamburger-open-icon {
    display: inline-flex;
}

.hamburger-close-icon {
    display: none;
}


.hamburger-btn.open .hamburger-open-icon {
    display: none;
}

.hamburger-btn.open .hamburger-close-icon {
    display: inline-flex;
}

/* MOBILE MENU OVERLAY (desktop hidden) */
.mobile-menu-overlay {
    display: none;
}






/* — MEDIA QUERY MOBILE (ora fino a 1168px) — */
@media (max-width: 1168px) {

    /* distanza unificata dal bordo destro per X + voci + barra di ricerca */
    :root {
        --edge-right: 11px;
    }

    /* cambia questo numero per micro-spostamenti */

    .navbar__menu,
    .navbar__actions>.icon-btn:not(.hamburger-btn),
    .navbar__actions .lang-switcher {
        display: none;
    }

    .container {
        position: relative;
        justify-content: space-between !important;
        gap: 0;
    }

    .navbar__logo {
        margin-left: -16px;
    }

    /* hamburger: lasciato com’è */
    .hamburger-btn {
        display: inline-flex;
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
        z-index: 1001;
    }

    /* OVERLAY: sposto TUTTO più a destra con lo stesso padding-right della X */
    .mobile-menu-overlay {
        display: flex;
        position: fixed;
        inset: 0;
        background: #f7f7f7;
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 1000;

        /* ⇢ qui il trucco: stessa distanza a destra per voci e search */
        padding: 2rem var(--edge-right) 2rem 1.5rem;

        overflow-y: auto;
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-menu-overlay.active {
        transform: translateX(0);
    }

    .mobile-menu-overlay .navbar__menu {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
        margin: 0;
        padding: 3rem 0 0 0;
        margin-right: 14px;
        padding: 4.5rem 0 0 0;
    }

    .mobile-menu-overlay .navbar__menu a {
        display: block;
        text-align: right;
        font-size: 1.2rem;
        font-weight: 600;
        color: #3b3b3b;
        margin: 0;
    }

    /* X: stessa distanza dal bordo delle voci */
    .mobile-menu-close {
        position: fixed;
        right: var(--edge-right);
        top: 49px;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 2.2rem;
        line-height: 1;
        cursor: pointer;
        min-width: 48px;
        min-height: 48px;
        z-index: 1100;
        color: #3b3b3b;
    }

    .search-overlay {
        display: none !important;
    }

    /* barra di ricerca: niente "right", prende il padding-right dell’overlay */
    .mobile-search {
        display: flex;
        align-items: center;
        gap: .5rem;
        width: 100%;
        margin-top: auto;
        padding-top: 1rem;
    }

    .mobile-search-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #3b3b3b;
        cursor: pointer;
    }

    .mobile-search-input {
        flex: 1;
        font-size: 1rem;
        padding: .5rem 0;
        border: none;
        outline: none;
        background: transparent;
        color: #3b3b3b;
        text-align: right;
        border-bottom: 1px solid #3b3b3b;
    }

    .mobile-search-input::placeholder {
        color: #3b3b3b;
        opacity: .6;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        width: 100%;
    }
}








/* ! HERO - Immagine di sfondo con contenuto sopra posizionato in basso a destra */


/* ===== DESKTOP (>=1169px) ===== */
.hero {
    height: 90vh;
    background-image: url("img/manifattura tabacchi esterno.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 10%;
    overflow: hidden;
    margin-bottom: 120px;
}

.hero__content {
    color: var(--color-dark);
    text-align: center;
    background: #f7f7f7;
    padding: 60px;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    position: absolute;
    bottom: 60px;
    right: 60px;
    box-shadow: 0 4px 10px #3b3b3b;
}

.hero__content h1 {
    font-size: 3rem;
}

.hero__content .address {
    font-size: 1.3rem;
}

.hero__content p {
    font-size: 1.2rem;
}

.hero__content .line {
    width: 100px;
    height: 2.5px;
    background-color: #3b3b3b;
    margin: 20px auto;
    opacity: 1;
}

.hero__button {
    position: absolute;
    bottom: -20px;
    right: 70px;
    z-index: 2;
}

.hero__button .cta {
    background-color: #9895f1;
    color: #3b3b3b;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 400;
    display: inline-block;
    transition: background-color 0.3s;
}

.hero__button .cta:hover {
    background-color: #8b88dd;
}

.cta::after {
    content: none !important;
}

.cta i {
    margin-left: .5rem;
    vertical-align: middle;
    font-size: inherit;
}


/* ===== MOBILE/TABLET (<=1168px) ===== */
@media (max-width:1168px) {
    .hero {
        position: relative;
        background: none;
        padding: 0;
        display: block;
        height: auto;
        margin-bottom: 70px;
        overflow: visible;
    }

    /* foto come blocco sopra */
    .hero::before {
        content: "";
        display: block;
        width: 100%;
        height: clamp(320px, 65vw, 560px);
        background-image: url("img/manifattura tabacchi esterno.webp");
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        z-index: 1;
    }

    /* BOX GRIGIO — full width, centrato, subito sotto l'immagine */
    .hero__content {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        z-index: 2;
        margin-top: -1px !important;
        margin-inline: 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
        padding: clamp(18px, 3.5vw, 28px) clamp(16px, 5.5vw, 28px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
        text-align: left;
        background: #f7f7f7;
        border-radius: 0 !important;
    }

    /* tipografia che scala */
    .hero__content h1 {
        font-size: clamp(1.4rem, 4.8vw, 1.9rem);
        line-height: 1.15;
    }

    .hero__content .address {
        font-size: clamp(1rem, 3.2vw, 1.3rem);
    }

    .hero__content p {
        font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    }

    /* linea a tutta larghezza nel box */
    .hero__content .line {
        width: 100%;
        height: 2px;
        opacity: .25;
        margin: 14px 0;
    }

    /* CTA centrata sotto al contenuto */
    .hero__button {
        position: static !important;
        display: block;
        margin: 14px auto 0;
        text-align: center;
    }

    .hero__button .cta {
        font-size: 1rem;
        padding: 10px 20px;
        border-radius: 6px;
    }
}

/* ===== RANGE 1168px → 768px ===== */
@media (max-width:1168px) and (min-width:768px) {
    .hero {
        margin-bottom: 140px;
    }
}







/* Card */


.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cards-container .card-title {
    margin-top: 16px;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3b3b3b;
    font-weight: 600;
}

.cards-container .item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards-container .card {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover effect */
.cards-container .card:hover {
    transform: translateY(-8px);
}

/* Immagine nella card */
.cards-container .card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.cards-container .card img.hover {
    display: none !important;
}

.cards-container .card img.normal {
    opacity: 1 !important;
}

/* --- rimosso il duplicato di .card-title con font-weight: 800 --- */

.bg-blue {
    background-color: #9ecbf5;
}

.bg-orange {
    background-color: #ffc78a;
}

.bg-red {
    background-color: #f09696;
}

.bg-grey {
    background-color: #f7df7b;
}

@media (max-width: 1168px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        margin: -20px auto 70px auto;
    }

    .cards-container .card {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .cards-container .card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }

    .cards-container .card-title {
        margin-top: 20px;
        font-size: 1.1rem;
        font-weight: 600;
        /* (lasciato com’era per mobile) */
        text-align: center;
        color: #3b3b3b;
        text-transform: uppercase;
    }
}

@media (max-width: 1168px) and (min-width: 769px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 200px 20px 0;
        margin: -300px auto 60px auto;
        border-top: 2px solid #3b3b3b;
    }
}




















/* EVENTI */
.news-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 10px;
}

.news-heading {
    font-size: 1.9rem;
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 3px solid #3b3b3b;
    padding-bottom: 4px;
    color: #3b3b3b;
    margin-bottom: 36px;
    font-weight: 600;
}

.news-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.news-slider::-webkit-scrollbar {
    height: 6px;
}

.news-slider::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.news-card {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.news-title {
    font-size: 1.25rem;
    margin: 0.75rem 1rem 0.25rem;
    color: #3b3b3b;
    font-weight: 600;
}

.news-tags {
    list-style: none;
    padding: 0 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #3b3b3b;
}

.news-tags li::before {
    content: "#";
}

.news-excerpt {
    font-size: 0.9rem;
    margin: 0.5rem 1rem 1rem;
    color: #3b3b3b;
    flex-grow: 1;
}

/* --- VERSIONE MOBILE --- */
@media (max-width: 1168px) {
    .news-container {
        max-width: 100%;
        padding: 0 10px;
        overflow-x: auto;
        margin: 2rem auto 2rem;
    }

    .news-heading {
        font-size: 1.4rem;
        text-transform: uppercase;
        text-align: center;
        display: block;
        padding-bottom: 4px;
        color: #3b3b3b;
        margin: 0 auto 24px;
        width: max-content;
        font-weight: 500;
        /* medio */
    }

    .news-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        padding-bottom: 1rem;
        margin: 0 auto;
    }

    .news-slider::-webkit-scrollbar {
        height: 6px;
    }

    .news-slider::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    .news-card {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
        background: #f7f7f7;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        margin: 0 10px;
    }

    .news-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .news-title {
        font-size: 1.25rem;
        margin: 0.75rem 1rem 0.25rem;
        color: #3b3b3b;
        text-align: left;
        font-weight: 600;
    }

    .news-tags {
        list-style: none;
        padding: 0 1rem;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        font-size: 0.85rem;
        color: #3b3b3b;
    }

    .news-tags li::before {
        content: "#";
    }

    .news-excerpt {
        font-size: 0.9rem;
        margin: 0.5rem 1rem 1rem;
        color: #3b3b3b;
        flex-grow: 1;
        text-align: left;
    }
}

















/* FEATURED RESIDENZE */

.featured__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    background: #ffffff;
    padding: 80px 0;
}

.featured__left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.featured__title {
    text-transform: uppercase;
    font-size: 1.9rem;
    margin: 0 0 20px;
    border-bottom: 2px solid #e33;
    display: inline-block;
    padding-bottom: 4px;
    color: #3b3b3b;
    font-weight: 500;
    /* medio, non grassetto pieno */
}

.featured__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-left: -30px;
}

.featured__right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.featured__heading {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
    color: #3b3b3b;
    font-weight: 600;
}

.featured__text {
    font-size: 1rem;
    line-height: 1.6;
    color: #3b3b3b;
}

.btn-hover {
    align-self: start;
    padding: 12px 24px;
    margin-top: 10px;
    border-radius: 4px;
    color: #f7f7f7;
    background-color: #3b3b3b;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-hover:hover {
    background-color: #555;
}

/* --- VERSIONE MOBILE --- */
@media (max-width: 1168px) {
    .featured__grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        padding: 60px 20px;
        text-align: center;
    }

    .featured__left,
    .featured__right {
        width: 100%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .featured__title {
        font-size: 1.5rem;
        border-bottom: 2px solid #e33;
        padding-bottom: 4px;
        color: #3b3b3b;
        text-align: center;
        font-weight: 500;
    }

    .featured__image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
        margin: 0 auto;
    }

    .featured__heading {
        font-size: 1.3rem;
        text-transform: uppercase;
        color: #3b3b3b;
        text-align: center;
        font-weight: 600;
    }

    .featured__text {
        font-size: 1rem;
        line-height: 1.6;
        color: #3b3b3b;
        text-align: center;
        max-width: 600px;
    }

    .btn-hover {
        align-self: center;
        padding: 12px 24px;
        background-color: #3b3b3b;
        color: #f7f7f7;
        border-radius: 6px;
        text-decoration: none;
        text-transform: uppercase;
        transition: background 0.3s, color 0.3s;
    }

    .btn-hover:hover {
        background-color: #555;
    }
}

@media (max-width: 1168px) and (min-width: 769px) {
    .featured__grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 40px 20px;
        max-width: 700px;
        margin: 0 auto;
    }

    .featured__left,
    .featured__right {
        width: 100%;
        max-width: 680px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .featured__image img {
        width: 100%;
        height: auto;
        max-width: 600px;
        margin: 0 auto;
        border-radius: 4px;
        display: block;
    }

    .featured__title,
    .featured__heading,
    .featured__text {
        text-align: center;
    }

    .btn-hover {
        align-self: center;
    }
}




















/* Partner Carousel con puntini */

#partnerCarousel.pc-section {
    background: #ffdcb3;
    padding: 60px 10px 10px;
    position: relative;
    overflow: hidden;
}

.pc-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    padding: 0 10px;
}

.pc-slides {
    display: flex;
    gap: 24px;
    padding-left: 10px;
    padding-right: 10px;
    transition: transform 0.4s ease;
}

.pc-title {
    text-transform: uppercase;
    font-size: 1.9rem;
    margin: 0 0 36px 0;
    border-bottom: 3px solid #ffcd94;
    display: inline-block;
    padding-bottom: 4px;
    font-weight: 600;
}

.pc-slider {
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pc-slider::-webkit-scrollbar {
    display: none;
}

.pc-slide {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
}

.pc-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.pc-text {
    padding: 16px;
    text-align: center;
}

.pc-text h3 {
    font-size: 1rem;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.2;
    font-weight: 600;
}

.pc-text a {
    font-size: 0.9rem;
    color: #ffc582;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.pc-text a:hover {
    border-color: #f9b76c;
}

.pc-dots {
    position: absolute;
    bottom: 16px;
    width: 100%;
    text-align: center;
}

.pc-dot {
    width: 16px;
    height: 16px;
    margin: 0 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.pc-dot:hover {
    transform: scale(1.3);
}


/* --- VERSIONE MOBILE --- */
@media (max-width: 1168px) {
    #partnerCarousel.pc-section {
        background: #ffdcb3;
        padding: 40px 10px 10px;
        position: relative;
        overflow: hidden;
    }

    .pc-inner {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        text-align: center;
    }

    .pc-title {
        text-align: center;
        font-size: 1.4rem;
        margin: 0 0 24px;
        padding-bottom: 4px;
        font-weight: 600;
    }

    .pc-slider {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .pc-slider::-webkit-scrollbar {
        display: none;
    }

    .pc-slides {
        display: flex;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .pc-slide {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: center;
        border-radius: 8px;
        background: #f7f7f7;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .pc-slide img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
    }

    .pc-text {
        padding: 14px;
        text-align: center;
    }

    .pc-text h3 {
        font-size: 1rem;
        margin-bottom: 8px;
        color: #333;
        line-height: 1.2;
        font-weight: 600;
    }

    .pc-text a {
        font-size: 0.9rem;
        color: #ffc582;
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: border-color 0.2s;
    }

    .pc-text a:hover {
        border-color: #f9b76c;
    }

    .pc-dots {
        position: absolute;
        bottom: 10px;
        width: 100%;
        text-align: center;
    }

    .pc-dot {
        width: 14px;
        height: 14px;
        margin: 0 5px;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .pc-dot:hover {
        transform: scale(1.2);
    }
}













/* SEZIONE COME ARRIVARE */
.come-arrivare {
    max-width: 1200px;
    margin: 5rem auto 2rem;
    padding: 0 10px;
}

.come-arrivare h2 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #3b3b3b;
    display: inline-block;
    padding-bottom: 0.2rem;
    font-weight: 600;
}

/* mappa responsive */
.map-container {
    width: 100%;
    aspect-ratio: 16 / 7;
    margin-bottom: 4rem;
    margin-top: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    margin-top: 20px;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

/* cards layout */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 3rem 0;
    box-sizing: border-box;
}

.card {
    display: flex;
    align-items: center;
    width: 100%;
}

.card .icon {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-right: 1.5rem;
}

.card .text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.card .text p {
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.card:first-child .icon {
    margin-left: -60px;
}

.card:nth-child(2) {
    margin-left: -90px;
}


/* --- VERSIONE MOBILE --- */
@media (max-width: 1168px) {
    .come-arrivare {
        max-width: 100%;
        margin: 3rem auto 4rem;
        padding: 0 16px;
        text-align: center;
    }

    .come-arrivare h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.15rem;
        display: inline-block;
        font-weight: 600;
    }

    .map-container {
        width: 100%;
        aspect-ratio: 16 / 9;
        margin: 0.8rem 0 2.5rem;
    }

    .info-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 400px;
    }

    .card .icon {
        width: 110px;
        height: 110px;
        object-fit: contain;
        margin-bottom: 0.8rem;
    }

    .card .text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
        text-transform: uppercase;
        font-weight: 600;
    }

    .card .text p {
        font-size: 0.9rem;
        margin-top: 0.2rem;
    }

    .card:first-child .icon,
    .card:nth-child(2) {
        margin-left: 0 !important;
    }
}











/* NEWSLETTER */

.newsletter-section {
    background: #8a88ff;
    color: #f7f7f7;
    padding: 60px 20px;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.newsletter-text {
    flex: 1 1 300px;
    max-width: 800px;
}

.newsletter-text h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1.1;
    font-weight: 600;
}

.newsletter-text p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 400;
}

/* Pulsante "Iscriviti" */
.newsletter-btn {
    flex: 0 0 auto;
    background: #f5ff33;
    color: #3b3b3b;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    padding: 22px 44px;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
    margin-top: 20px;
    min-width: 240px;
}

.newsletter-btn:hover {
    background: #e0e600;
    transform: translateY(-2px);
}

/* --- VERSIONE MOBILE --- */
@media (max-width: 1168px) {
    .newsletter-section {
        padding: 80px 20px;
    }

    .newsletter-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    .newsletter-text {
        flex: 1 1 100%;
        max-width: none;
        margin-bottom: 24px;
    }

    .newsletter-text h2 {
        font-size: 2.25rem;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .newsletter-text p {
        font-size: 1rem;
        margin: 0 auto;
        max-width: 90%;
        opacity: 0.9;
        font-weight: 400;
    }

    .newsletter-btn {
        flex: 0 0 100%;
        min-width: auto;
        max-width: 400px;
        width: 90%;
        margin: 0 auto;
        margin-top: 16px;
        padding: 18px 0;
    }
}











/* PARTNER SECTION */

.partners-section {
    background-color: #fff;
    padding: 60px 20px;
}

.partners-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.partner-block {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3b3b3b;
    margin-bottom: 16px;
    white-space: nowrap;
}

.partner-logo {
    max-height: 60px;
    object-fit: contain;
    max-width: 160px;
}

@media (max-width: 1168px) {
    .partners-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .partner-block {
        flex: none;
        width: 100%;
        max-width: 300px;
    }
}





















/* FOOTER */

.site-footer {
    background-color: #3b3b3b;
    color: #f7f7f7;
    padding: 60px 40px;
    font-size: 0.95rem;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 220px;
}

.footer-column h4 {
    font-weight: 600 !important;
    /* più leggero */
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: inherit;
    /* assicura che usi il font corrente */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #f7f7f7;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 1rem;
}

.footer-column a:hover {
    opacity: 0.8;
}

.footer-column p {
    margin: 10px 0 20px;
    line-height: 1.5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    position: relative;
}

.footer-right {
    align-self: flex-end;
}

.footer-socials {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

.footer-socials a {
    color: #f7f7f7;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #aaa;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: #f7f7f7;
}

.footer-end {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
}

.footer-logo img {
    max-height: 50px;
}

.footer-legal {
    text-align: right;
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 10px;
    width: 100%;
    line-height: 1.5;
}

/* --- VERSIONE MOBILE --- */
@media (max-width: 1168px) {

    .site-footer {
        padding: 40px 20px;
        font-size: 0.9rem;
    }

    .footer-columns {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-column {
        flex: 1 1 auto;
        min-width: auto;
        text-align: left;
    }

    .footer-bottom {
        margin-top: 30px;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-right {
        align-self: flex-start;
    }

    .footer-line {
        margin: 20px 0;
    }

    .footer-socials {
        justify-content: flex-start;
        gap: 15px;
    }

    .footer-logo img {
        max-height: 40px;
        margin-bottom: 20px;
    }

    .footer-end {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .footer-legal {
        text-align: left;
        font-size: 0.8rem;
        color: #ccc;
        line-height: 1.4;
        margin-top: 10px;
        width: 100%;
    }
}











































/* ============================================
   STILI PAGINA CHI-SIAMO
============================================ */

.hero-ibrida {
    position: relative;
    background-image: url("img/immagine-base copia.png");
    background-size: cover;
    background-position: center;
    color: #f0f0e5;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-ibrida::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(1px);
    z-index: 1;
}

.hero-ibrida .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hero-ibrida__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: -20px;
    padding-left: 0;
    text-align: left;
}

.hero-ibrida__content h1 {
    font-size: 2.4rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-ibrida__content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}



@media (max-width: 1168px) {
    .hero-ibrida {
        padding: 60px 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-ibrida .container {
        padding: 0 24px;
    }

    .hero-ibrida__content {
        margin: 0;
        padding: 0;
        max-width: 100%;
        text-align: left;
    }

    .hero-ibrida__content h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .hero-ibrida__content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
}






/* sezione presentazione manifattura */
.section-simple {
    padding: 80px 0 80px;
    background: #fff;
    color: #3b3b3b;
}

.section-simple .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.section-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 0;
    margin-left: 0;
}

.section-left h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-left: -20px;
    font-weight: 600;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3b3b3b;
    margin-left: -20px;
}

.section-right p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}



@media (max-width: 1168px) {
    .section-simple {
        padding: 40px 20px 20px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        justify-items: center;
    }

    .section-left {
        align-items: center;
    }

    .section-left h2,
    .section-subtitle {
        margin-left: 0;
    }

    .section-right p {
        text-align: center;
    }
}














/* sezione mission vision */


.section-mission-vision {
    padding: 100px 20px;
    background: #d5d5fa;
    color: #3b3b3b;
}

.section-mission-vision .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-mission-vision h2 {
    font-size: 1.9rem;
    text-transform: uppercase;
    font-weight: 600;
    text-align: left;
    margin-bottom: -10px;
    border-bottom: 3px solid #3b3b3b;
    margin-left: -10px;
}

/* DUE COLONNE SOTTO IL TITOLO */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    width: 100%;
}

.mission-vision-grid h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.mission-vision-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-vision-grid li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.mission-vision-grid li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #3b3b3b;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.65em;
}











@media (max-width: 1168px) {
    .section-mission-vision {
        padding: 40px 20px 40px;
        text-align: center;
        align-items: center;
    }

    .section-mission-vision .container {
        align-items: center;
        text-align: center;
    }

    .section-mission-vision h2 {
        text-align: center;
        font-size: 1.4rem;
        margin-bottom: 50px;
        border-bottom: 2px solid #3b3b3b;
    }

    .mission-vision-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .mission-vision-grid h3 {
        text-align: center;
        font-size: 1.2rem;
    }

    .mission-vision-grid ul {
        padding: 0;
        margin: 0 auto;
        max-width: 600px;
    }

    .mission-vision-grid li {
        position: relative;
        padding-left: 24px;
        margin-bottom: 1.5rem;
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        /* ✅ testo centrato */
    }

    .mission-vision-grid li::before {
        content: '';
        width: 8px;
        height: 8px;
        background-color: #3b3b3b;
        border-radius: 50%;
        position: absolute;
        left: 0;
        top: 0.65em;
    }
}










/* FEATURED RESIDENZE*/

.featured-unit {
    padding: 80px 20px;
    background-color: #fff;
    color: #3b3b3b;
}

.featured-unit .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.unit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.unit-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.unit-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.unit-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-dark {
    display: inline-block;
    padding: 16px 28px;
    background-color: #3b3b3b;
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-dark:hover {
    background-color: #555;
}





@media (max-width: 1168px) {
    .featured-unit {
        padding: 60px 20px;
        text-align: center;
    }

    .unit-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .unit-image img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .unit-content {
        text-align: center;
    }

    .unit-content h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .unit-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .btn-dark {
        padding: 14px 24px;
        font-size: 1rem;
        border-radius: 5px;
    }
}


















.progettisti-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.progettisti-title {
    display: inline-block;
    font-size: 1.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 100px;
    text-align: left;
    border-bottom: 3px solid #3b3b3b;
    padding-bottom: 4px;
    white-space: nowrap;
    line-height: 1.1;
}

.progettisti-list {
    display: flex;
    flex-direction: column;
    gap: 90px;
    margin-left: 280px;
}

.progettisti-block {
    display: flex;
    align-items: center;
    gap: 40px;
}

.progettisti-block img {
    width: 100px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.progettisti-block p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}






@media (max-width: 1168px) {
    .progettisti-container {
        padding: 0 40px;
    }

    .progettisti-title-wrapper {
        display: flex;
        justify-content: center;
        margin-bottom: 0;
    }

    .progettisti-title {
        font-size: 1.4rem;
        font-weight: 600;
        text-transform: uppercase;
        border-bottom: 2px solid #3b3b3b;
        padding-bottom: 4px;
        white-space: nowrap;
        text-align: center;
    }

    .progettisti-list {
        margin-top: -40px;
        margin-left: 0;
        gap: 40px;
    }

    .progettisti-block {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .progettisti-block img {
        width: 80px;
        height: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

    .progettisti-block p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0;
    }
}





/* NEWSLETTER */


.newsletter-section {
    background: #8a88ff;
    color: #f7f7f7;
    padding: 60px 20px;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.newsletter-text {
    flex: 1 1 300px;
    max-width: 800px;
}

.newsletter-text h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.newsletter-text p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Pulsante "Iscriviti" */
.newsletter-btn {
    flex: 0 0 auto;
    background: #f5ff33;
    color: #3b3b3b;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    padding: 22px 44px;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
    margin-top: 20px;
    min-width: 240px;
}

.newsletter-btn:hover {
    background: #e0e600;
    transform: translateY(-2px);
}



@media (max-width: 1168px) {
    .newsletter-section {
        padding: 80px 20px;
    }

    .newsletter-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    .newsletter-text {
        flex: 1 1 100%;
        max-width: none;
        margin-bottom: 24px;
    }

    .newsletter-text h2 {
        font-size: 2.25rem;
        margin-bottom: 12px;
    }

    .newsletter-text p {
        font-size: 1rem;
        margin: 0 auto;
        max-width: 90%;
        opacity: 0.9;
    }

    .newsletter-btn {
        flex: 0 0 100%;
        min-width: auto;
        max-width: 400px;
        width: 90%;
        margin: 0 auto;
        margin-top: 16px;
        padding: 18px 0;
    }
}






/* FOOTER */


.site-footer {
    background-color: #3b3b3b;
    color: #f7f7f7;
    padding: 60px 40px;
    font-size: 0.95rem;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 220px;
}

.footer-column h4 {
    font-weight: 900;
    font-style: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #f7f7f7;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 1rem;
}

.footer-column a:hover {
    opacity: 0.8;
}

.footer-column p {
    margin: 10px 0 20px;
    line-height: 1.5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    position: relative;
}

.footer-right {
    align-self: flex-end;
}

.footer-socials {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

.footer-socials a {
    color: #f7f7f7;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #aaa;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: #f7f7f7;
}

.footer-end {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
}

.footer-logo img {
    max-height: 50px;
}

.footer-legal {
    text-align: right;
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 10px;
    width: 100%;
    line-height: 1.5;
}


@media (max-width: 1168px) {

    .site-footer {
        padding: 40px 20px;
        font-size: 0.9rem;
    }

    .footer-columns {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-column {
        flex: 1 1 auto;
        min-width: auto;
        text-align: left;
    }

    .footer-bottom {
        margin-top: 30px;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-right {
        align-self: flex-start;
    }

    .footer-line {
        margin: 20px 0;
    }

    .footer-socials {
        justify-content: flex-start;
        gap: 15px;
    }

    .footer-logo img {
        max-height: 40px;
        margin-bottom: 20px;
    }

    .footer-end {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .footer-legal {
        text-align: left;
        font-size: 0.8rem;
        color: #ccc;
        line-height: 1.4;
        margin-top: 10px;
        width: 100%;
    }
}