/*
Theme Name: GD
Theme URI:
Author: Giuseppe De Sanctis
Author URI: https://www.fullcreative.it
Description: Starter Theme with Bootstrap 5 and Bootstrap Icons
Version: 0.1
Requires at least: 5.0
Tested up to: 5.4s
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, sticky-post, translation-ready
Text Domain: gd
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Variabili CSS per altezze comuni */
:root {
    --navbar-height: 70px; /* Altezza navbar fixed (regolabile se necessario) */
}

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

#comments{margin-bottom: 40px;}
.comments{padding-top: 40px;}
.comments textarea{width: 100%;}
.comments label{ min-width: 80px;}
.comments ul,
.comments ol{list-style-type: none;}
.comment-author img{border-radius: 999px; width:50px;}
.comment .reply{border-bottom:  1px solid #ccc; margin-bottom: 30px;padding-bottom: 10px;}
input,
textarea{padding: 5px 10px; border: 1px solid #ccc;}
.widget_search .screen-reader-text{display: block;}
.widget_search #s{width:70%;float:left;}
.widget_search #searchsubmit{width:30%;float:left;background: #fff;}
.pagination{margin-bottom:40px}
.page-numbers{display: inline-block;padding: 10px 15px;border: 1px solid #ddd;margin-right:4px;}
.post img{max-width: 100%; height:auto;}
.gallery-caption{padding:5px; font-size: 10px;}
.bypostauthor{border-left: 3px solid #ddd;padding-left: 20px;}
.alignnone { margin: 5px 20px 20px 0;}
.aligncenter,
div.aligncenter {display: block; margin: 5px auto 5px auto;}
.alignright {float:right; margin: 5px 0 20px 20px;}
.alignleft {float: left; margin: 5px 20px 20px 0;}
a img.alignright {float: right; margin: 5px 0 20px 20px;}
a img.alignnone {margin: 5px 20px 20px 0;}
a img.alignleft {float: left;margin: 5px 20px 20px 0;}
a img.aligncenter {display: block;margin-left: auto;margin-right: auto;}
.wp-caption {background: #fff;border: 1px solid #f0f0f0;max-width: 96%; padding: 5px 3px 10px;text-align: center;}
.wp-caption.alignnone {margin: 5px 20px 20px 0;}
.wp-caption.alignleft {margin: 5px 20px 20px 0;}
.wp-caption.alignright {margin: 5px 0 20px 20px;}
.wp-caption img {border: 0 none;height: auto;margin: 0;max-width: 98.5%;padding: 0;width: auto;}
.wp-caption p.wp-caption-text {font-size: 11px;line-height: 17px; margin: 0; padding: 0 4px 5px;}
.screen-reader-text {clip: rect(1px, 1px, 1px, 1px);position: absolute !important;white-space: nowrap;height: 1px;width: 1px;overflow: hidden;}
.screen-reader-text:focus {	background-color: #f1f1f1;	border-radius: 3px;	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);	clip: auto !important;color: #21759b;display: block;font-size: 14px;font-size: 0.875rem;font-weight: bold;height: auto;	left: 5px;line-height: normal;padding: 15px 23px 14px;text-decoration: none;top: 5px;width: auto;z-index: 100000; /* Above WP toolbar. */}


/* Personalizzazione Tema */ 
body{display: flex; min-height: 100vh; flex-direction: column; position: relative; background-color: #fff; font-family: "Montserrat", sans-serif; font-weight: normal; font-style: normal; padding-top: 0 !important;}
.main-content {
    flex: 1;
    margin-top: 0;
    padding-top: 0;
}

/* Rimuove spazio tra header e hero section società */
body.template-templates-tpl-societa-php .main-content,
body.page-template-templates-tpl-societa-php .main-content,
.tpl-societa .main-content,
.template-templates-tpl-societa-php .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Forza la hero section a iniziare subito dopo il navbar fixed */
body.template-templates-tpl-societa-php .hero-societa-section,
body.page-template-templates-tpl-societa-php .hero-societa-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    top: 0;
}

/* Rimuove qualsiasi margine dal main quando contiene hero società */
body.template-templates-tpl-societa-php main.main-content > .hero-societa-section:first-child,
body.page-template-templates-tpl-societa-php main.main-content > .hero-societa-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Container 1400px */
.container {
    max-width: 1400px;
}

/* Container 1400px personalizzato per Hero */
.hero-container-1400 {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar a comparsa allo scroll */
#mainNavbar {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    transform: translateY(-100%);
    z-index: 1030;
    background-color: #1D1D1B !important;
    padding: 1rem 0;
}

/* Navbar sempre visibile nelle altre pagine */
#mainNavbar.navbar-fixed-always {
    transform: translateY(0);
    transition: box-shadow 0.3s ease-in-out;
}

#mainNavbar.navbar-visible {
    transform: translateY(0);
}

#mainNavbar.navbar-hidden {
    transform: translateY(-100%);
}

#mainNavbar.is-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar Logo */
.navbar-logo-img {
    height: auto;
    max-height: 70px;
    width: auto;
}

/* Navbar Social Menu */
.navbar-social-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-social-icon,
.navbar-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.navbar-social-icon:hover,
.navbar-menu-toggle:hover {
    opacity: 0.7;
}

.navbar-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.navbar-menu-toggle {
    padding: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    #mainNavbar {
        transition: none;
    }
}

/* Mobile: padding navbar a 0 */
@media (max-width: 767.98px) {
    #mainNavbar {
        padding: 0;
    }
}

/* Hero Section */
.hero-section {
    overflow: hidden;
    position: relative;
}

/* Container principale con le due colonne (nero e immagine) */
.hero-main-container {
    position: relative;
    width: 100%;
}

.hero-row {
    height: 870px;
}

.hero-content-col {
    background-color: #1D1D1B;
    width: 860px;
    height: 870px;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.hero-image-col {
    position: relative;
    width: 1210px;
    height: 870px;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 1;
}

/* Container overlay con contenuto (1400px) - position absolute */
.hero-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none; /* Permette il click attraverso l'overlay */
}

.hero-overlay-container .container {
    pointer-events: auto; /* Riabilita il click sui contenuti */
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Logo Hero */
.hero-logo {
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .hero-logo {
        margin-top: 40px;
    }
}

.hero-logo a {
    display: inline-block;
    text-decoration: none;
}

.hero-logo-img {
    max-width: 200px;
    height: auto;
}

/* Hamburger Menu Button nella Hero */
.btn-hero-menu {
    position: absolute;
    top: 30px;
    right: calc((100vw - 1400px) / 2 + 15px); /* Allineato al bordo destro del container 1400px */
    z-index: 1050;
    background-color: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    pointer-events: auto; /* Assicura che il bottone sia cliccabile */
}

/* Su schermi più piccoli, usa un margine fisso */
@media (max-width: 1439px) {
    .btn-hero-menu {
        right: 15px;
    }
}

/* Responsive Hero Section */
@media (max-width: 1920px) {
    .hero-content-col {
        width: calc(710 / 1920 * 100%);
    }
    
    .hero-image-col {
        width: calc(1210 / 1920 * 100%);
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .hero-row {
        height: auto;
        min-height: 600px;
    }
    
    .hero-content-col {
        width: 70%;
        max-width: calc(100vw - 300px) !important; /* Assicura che l'immagine abbia sempre spazio */
        height: auto;
        min-height: 600px;
    }
    
    .hero-image-col {
        width: 30%;
        min-width: 300px !important; /* Larghezza minima per evitare che scompaia */
        height: auto;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: clamp(24px, 3vw, 32px);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-logo {
        margin-bottom: 40px;
    }
}

.btn-hero-menu .hero-menu-icon {
    /* width: 24px;
    height: 24px; */
    object-fit: contain;
}

.hero-content-wrapper {
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(24px, 2.86vw, 40px); /* Responsive: minimo 24px, massimo 40px, scala in base alla larghezza viewport */
    font-weight: 600; /* Semi-bold */
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff !important;
    font-family: "Montserrat", sans-serif;
}

.hero-title .d-block {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 1rem;
    color: #fff !important;
}

.btn-hero {
    background-color: #1D1D1B;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 2rem;
    font-weight: 400;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
}

.btn-hero:hover {
    background-color: #1D1D1B;
    color: #fff;
    border-color: #fff;
}

.hero-image-col {
    position: relative;
    width: 1210px;
    height: 870px;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 1;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block !important; /* Assicura che sia sempre visibile */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block !important; /* Assicura che sia sempre visibile */
}

/* Responsive Hero Section */
@media (max-width: 1920px) {
    .hero-content-col {
        width: calc(710 / 1920 * 100%);
    }
    
    .hero-image-col {
        width: calc(1210 / 1920 * 100%);
    }
}

/* Mobile - Layout completamente separato */
/* Assicura che il container desktop sia nascosto su mobile */
@media (max-width: 767.98px) {
    .hero-main-container.d-none.d-md-block {
        display: none !important;
    }
    
    .hero-overlay-container.d-none.d-md-block {
        display: none !important;
    }
}

/* Hero Mobile Container */
.hero-mobile-container {
    background-color: #1D1D1B;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Mobile con Logo e Menu */
.hero-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
    position: relative;
    z-index: 10;
}

.hero-mobile-logo {
    flex-shrink: 0;
}

.hero-mobile-logo a {
    display: inline-block;
    text-decoration: none;
}

.hero-mobile-logo-img {
    max-width: 150px;
    height: auto;
}

/* Hamburger Menu Button Mobile */
.btn-hero-menu-mobile {
    background-color: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.btn-hero-menu-mobile .hero-menu-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Contenuto Mobile */
.hero-mobile-content {
    padding: 30px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-mobile-title {
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff !important;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 1rem;
}

.hero-mobile-title .d-block {
    display: block;
}

.hero-mobile-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #fff !important;
    margin-bottom: 1.5rem;
}

.btn-hero-mobile {
    background-color: #1D1D1B;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem .6rem;
    font-weight: 400;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.btn-hero-mobile:hover {
    background-color: #1D1D1B;
    color: #fff;
    border-color: #fff;
}

/* Immagine Mobile */
.hero-mobile-image-wrapper {
    width: 100%;
    margin-top: auto;
    overflow: hidden;
}

.hero-mobile-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile - stack verticale (per retrocompatibilità se necessario) */
@media (max-width: 767.98px) {
    .hero-row {
        height: auto;
        flex-direction: column;
    }
    
    .hero-content-col,
    .hero-image-col {
        width: 100%;
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: clamp(20px, 4vw, 2rem);
    }
    
    .hero-content-wrapper {
        padding: 3rem 2rem !important;
    }
    
    .hero-logo {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero-content-col,
    .hero-image-col {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-hero-menu {
        top: 15px;
        right: 15px;
    }
}

/* Offcanvas Menu Styling */
.offcanvas {
    max-width: 400px;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.offcanvas-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1D1D1B;
}

.offcanvas-body {
    padding: 1.5rem;
}

.offcanvas-body .navbar-nav .nav-item .nav-link {
    color: #FAB905;
    padding: 0.75rem 0;
    font-size: 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: bold;
    text-transform: uppercase;
}

.offcanvas-body .navbar-nav .nav-item .nav-link:hover {
    color: #1D1D1B;
}

.offcanvas-body .navbar-nav .dropdown-menu {
    background-color: transparent;
    border: none;
    padding-left: 1rem;
}

.offcanvas-body .navbar-nav .dropdown-menu .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

/* **************** Bilancio Sostenibilità Section *****************/
.bilancio-sostenibilita-section {
    background-color: #fff;
    padding: 70px 0;
    scroll-margin-top: 80px;
}

.bilancio-title {
    font-size: 35px;
    font-weight: 600;
    color: #FAB906;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bilancio-description {
    max-width: 630px;
    color: #1D1D1B;
    font-family: "Montserrat", sans-serif;
}

.bilancio-description p {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 1rem;
}

.bilancio-description p:first-of-type {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.bilancio-description strong {
    font-weight: 600 !important;
}

.bilancio-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bilancio-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive Bilancio Section */
@media (max-width: 991.98px) {
    .bilancio-sostenibilita-section {
        padding: 60px 0;
    }
    
    .bilancio-title {
        margin-bottom: 2rem;
    }
    
    .bilancio-image-wrapper {
        margin-top: 2rem;
    }
}

/* Mobile Bilancio Section */
@media (max-width: 767.98px) {
    .bilancio-sostenibilita-section {
        padding: 40px 0;
        background-color: #fff;
    }
    
    .bilancio-title {
        font-size: clamp(20px, 5vw, 28px);
        margin-bottom: 1.5rem;
        padding: 0 20px;
    }
    
    .bilancio-description {
        max-width: 100%;
        padding: 0 20px;
        margin-bottom: 2rem;
    }
    
    .bilancio-description p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .bilancio-description p:first-of-type {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    
    .bilancio-image-wrapper {
        margin-top: 0;
        padding: 0;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        max-width: 100vw;
    }
    
    .bilancio-image {
        width: 100%;
        border-radius: 0;
    }
}

/* **************** Fine Bilancio Sostenibilità Section *****************/

/* **************** Crescita Responsabile Section *****************/
.crescita-responsabile-section {
    background-color: #FFB800;
    padding: 80px 0;
}

.crescita-title {
    font-size: 35px !important;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    line-height: 1.3;
    text-align: left;
}

.crescita-card {
    background-color: transparent;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.crescita-card-title {
    font-size: 35px;
    font-weight: 500;
    color: #1D1D1B;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    text-align: left;
}

.crescita-card-image {
    position: relative;
    flex-grow: 1;
    overflow: visible;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.crescita-card-icona {
    position: absolute;
    top: -40px;
    right: 38px;
    z-index: 10;
    width: 103px;
    height: 103px;
    background-color: #FEF7E3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crescita-icona-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crescita-image-img {
    width: 435px;
    height: 436px;
    max-width: 100%;
    object-fit: cover;
}

.crescita-card-button {
    margin-top: auto;
    padding-top: 1.5rem;
    text-align: left;
}

.btn-crescita {
    background-color: #1D1D1B;
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 17px;
    font-weight: 400;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    border: none;
    border-radius: 0px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-crescita:hover {
    background-color: #1D1D1B;
    color: #fff;
}

/* Responsive Crescita Responsabile Section */
@media (max-width: 991.98px) {
    .crescita-responsabile-section {
        padding: 60px 0;
    }
    
    .crescita-title {
        margin-bottom: 3rem;
    }
    
    .crescita-card {
        margin-bottom: 2rem;
    }
}

/* Mobile Crescita Responsabile Section - Carosello */
@media (max-width: 991.98px) {
    .crescita-title {
        font-size: clamp(20px, 5vw, 28px) !important;
        padding: 0 20px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .crescita-responsabile-section {
        padding: 40px 0 60px;
    }
    
    .crescita-title {
        font-size: clamp(18px, 5vw, 24px) !important;
        padding: 0 20px;
        margin-bottom: 1.5rem;
    }
    
    /* Carosello Mobile */
    #crescitaCarousel {
        padding: 0 20px;
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
    
    #crescitaCarousel .carousel-inner {
        touch-action: pan-y pinch-zoom;
    }
    
    #crescitaCarousel .carousel-item {
        touch-action: pan-y pinch-zoom;
    }
    
    .crescita-card-mobile {
        background-color: transparent;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .crescita-card-title-mobile {
        font-size: 22px;
        font-weight: 500;
        color: #1D1D1B;
        text-transform: uppercase;
        font-family: "Montserrat", sans-serif;
        text-align: left;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0;
    }
    
    .crescita-card-image-mobile {
        position: relative;
        width: 100%;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }
    
    .crescita-card-indicators-mobile {
        width: 100%;
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
    }
    
    .crescita-card-icona-mobile {
        position: absolute;
        top: -30px;
        right: 20px;
        z-index: 10;
        width: 80px;
        height: 80px;
        background-color: #FEF7E3;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .crescita-icona-img-mobile {
        width: 100%;
        height: 100%;
        object-fit: contain;        
    }
    
    .crescita-image-img-mobile {
        width: 100%;
        max-width: 100%;
        height: auto;        
        object-fit: cover;
    }
    
    .crescita-card-button-mobile {
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }
    
    .btn-crescita-mobile {
        background-color: #1D1D1B;
        color: #fff;
        padding: 0.75rem 2rem;
        font-size: 14px;
        font-weight: 400;
        text-transform: uppercase;
        font-family: "Montserrat", sans-serif;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        text-decoration: none;
        display: inline-block;
        width: 100%;
        max-width: 100%;
        transition: background-color 0.3s ease;
    }
    
    .btn-crescita-mobile:hover {
        background-color: #1D1D1B;
        color: #fff;
    }
    
    /* Indicatori Carosello (Linee orizzontali) - Override Bootstrap */
    .crescita-carousel-indicators {
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        justify-content: center !important;
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
        list-style: none !important;
    }
    
    .crescita-carousel-indicators button,
    .crescita-carousel-indicators [type="button"] {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        min-height: 8px !important;
        max-width: 8px !important;
        max-height: 8px !important;
        border-radius: 50% !important;
        background-color: #fff !important;
        border: none !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-indent: 0 !important;
        flex: 0 0 8px !important;
        transition: background-color 0.3s ease !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .crescita-carousel-indicators button.active,
    .crescita-carousel-indicators [type="button"].active {
        background-color: #1D1D1B !important;
        width: 8px !important;
        height: 8px !important;
    }
    
    .crescita-carousel-indicators button:not(.active),
    .crescita-carousel-indicators [type="button"]:not(.active) {
        background-color: #fff !important;
        opacity: 1 !important;
        width: 8px !important;
        height: 8px !important;
    }
}
/* **************** Fine Crescita Responsabile Section *****************/

/* **************** GIMA Nutrire Qualità Section *****************/
.gima-nutrire-qualita-section {
    background-color: #fff;
    padding: 80px 0;
}

.gima-title {
    font-size: 35px;
    font-weight: 700;
    color: #1D1D1B;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    line-height: 1.3;
    text-align: left;
}

.gima-blocco {
    margin-bottom: 3rem;
    max-width: 650px;
}

.gima-blocco:last-child {
    margin-bottom: 0;
}

.gima-blocco-header {
    margin-bottom: 1rem;
}

.gima-blocco-icona {
    flex-shrink: 0;
}

.gima-icona-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gima-blocco-title {
    font-size: 25px;
    font-weight: 700;
    color: #FAB906;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    line-height: 1.4;
    margin: 0;
    max-width: 513px; 
}

.gima-blocco-description {
    font-size: 20px;
    font-weight: 400;
    color: #1D1D1B;
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
    max-width: 590px;
}

.gima-blocco-description p {
    margin-bottom: 1rem;
}

.gima-blocco-description p:last-child {
    margin-bottom: 0;
}

.gima-investimento-box {
    background-color: #1D1D1B;
    padding: 3.5rem;
    width: 700px;
    height: 600px;
    border-radius: 50px 0 50px 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gima-investimento-importo {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gima-importo-numero {
    font-size: 125px;
    font-weight: 600;
}

.gima-importo-unita {
    font-size: 63px;
    font-weight: 600;
}

.gima-investimento-label {
    font-size: 50px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 1.5rem;
    line-height: 55px;
}

.gima-investimento-descrizione {
    font-size: 29px;
    font-weight: 400;
    color: #fff;
    line-height: 40px;
    font-family: "Montserrat", sans-serif;
}

/* Responsive GIMA Section */
@media (max-width: 991.98px) {
    .gima-nutrire-qualita-section {
        padding: 60px 0;
    }
    
    .gima-title {
        margin-bottom: 3rem;
    }
    
    .gima-blocco {
        margin-bottom: 2.5rem;
    }
    
    .gima-investimento-box {
        margin-top: 2rem;
        width: 100%;
        height: auto;
        min-height: 400px;
        border-radius: 50px;
    }
}

/* Mobile GIMA Section - Carosello */
@media (max-width: 767.98px) {
    .gima-nutrire-qualita-section {
        padding: 40px 0;
    }
    
    .gima-title {
        font-size: clamp(18px, 5vw, 24px);
        padding: 0 20px;
        margin-bottom: 2rem;
    }
    
    /* Carosello Mobile */
    #gimaBlocchiCarousel {
        padding: 0 20px;
        margin-bottom: 2rem;
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
    
    #gimaBlocchiCarousel .carousel-inner {
        touch-action: pan-y pinch-zoom;
    }
    
    #gimaBlocchiCarousel .carousel-item {
        touch-action: pan-y pinch-zoom;
    }
    
    .gima-blocco-mobile {
        margin-bottom: 0;
        max-width: 100%;
    }
    
    .gima-blocco-header-mobile {
        margin-bottom: 1rem;
    }
    
    .gima-blocco-icona-mobile {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
    }
    
    .gima-icona-img-mobile {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .gima-blocco-title-mobile {
        font-size: clamp(18px, 4vw, 22px);
        font-weight: 700;
        color: #FAB906;
        text-transform: uppercase;
        font-family: "Montserrat", sans-serif;
        line-height: 1.4;
        margin: 0;
    }
    
    .gima-blocco-description-mobile {
        font-size: 16px;
        font-weight: 400;
        color: #1D1D1B;
        line-height: 1.6;
        font-family: "Montserrat", sans-serif;
    }
    
    .gima-blocco-description-mobile p {
        margin-bottom: 1rem;
    }
    
    .gima-blocco-description-mobile p:last-child {
        margin-bottom: 0;
    }
    
    /* Indicatori Carosello GIMA */
    .gima-carousel-indicators-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 1.5rem 0;
        padding: 0 20px;
    }
    
    .gima-carousel-indicators {
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        justify-content: center !important;
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
        list-style: none !important;
    }
    
    .gima-carousel-indicators button,
    .gima-carousel-indicators [type="button"] {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        min-height: 8px !important;
        max-width: 8px !important;
        max-height: 8px !important;
        border-radius: 50% !important;
        background-color: #FAB906 !important;
        border: none !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-indent: 0 !important;
        flex: 0 0 8px !important;
        transition: background-color 0.3s ease !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .gima-carousel-indicators button.active,
    .gima-carousel-indicators [type="button"].active {
        background-color: #1D1D1B !important;
        width: 8px !important;
        height: 8px !important;
    }
    
    .gima-carousel-indicators button:not(.active),
    .gima-carousel-indicators [type="button"]:not(.active) {
        background-color: #FAB906 !important;
        opacity: 1 !important;
        width: 8px !important;
        height: 8px !important;
    }
    
    /* Box Investimento Mobile */
    .gima-investimento-box-mobile {
        background-color: #1D1D1B;
        padding: 2rem 1.5rem;
        margin: 2rem 20px 0;
        border-radius: 20px 0 20px 0;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .gima-investimento-importo-mobile {
        color: #fff;
        font-family: "Montserrat", sans-serif;
        line-height: 1.2;
        margin-bottom: 1rem;
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }
    
    .gima-investimento-importo-mobile .number-fallback {
        font-size: 60px;
        font-weight: 600;
    }
    
    .gima-importo-unita-mobile {
        font-size: 30px;
        font-weight: 600;
    }
    
    .gima-investimento-label-mobile {
        font-size: 24px;
        font-weight: 400;
        color: #fff;
        text-transform: uppercase;
        font-family: "Montserrat", sans-serif;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .gima-investimento-descrizione-mobile {
        font-size: 16px;
        font-weight: 400;
        color: #fff;
        line-height: 1.5;
        font-family: "Montserrat", sans-serif;
    }
    
    .gima-blocco-title {
        font-size: 16px;
    }
    
    .gima-investimento-importo {
        font-size: 36px;
    }
}


/* ============================================================
   CONTATTI SECTION - Versione definitiva (identica allo screenshot + privacy GDPR)
   ============================================================ */

.contatti-section {
    background-color: #ffb800;
    padding: 80px 0;
  }
  
  .contatti-title {
    font-size: 24px;
    font-weight: bold;
    color: #1D1D1B;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    line-height: 30px;
    text-align: left;
  }
  
  /* ====== Wrapper principale ====== */
  .contatti-form-wrapper {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
  }
  
  /* ====== Layout colonne ====== */
  .contatti-form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .contatti-form-col-left,
  .contatti-form-col-right {
    display: flex;
    flex-direction: column;
  }
  
  /* Rimuovi margini dai <p> nelle colonne form */
  .contatti-form-col-left > p,
  .contatti-form-col-right > p {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  /* Nascondi i <br> generati da CF7 nei campi form */
  .contatti-form-col-left br,
  .contatti-form-col-right br {
    display: none;
  }
  
  /* ====== Campi input ====== */
  .contatti-form-wrapper input[type="text"],
  .contatti-form-wrapper input[type="tel"],
  .contatti-form-wrapper textarea {
    width: 100%;
    background-color: #fff;
    border: none;
    padding: .854rem 0.75rem;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    color: #1D1D1B;
    margin-bottom: 0.88rem;
    box-sizing: border-box;
  }
  
  .contatti-form-wrapper textarea {
    flex-grow: 1;
    resize: none;
    height: 100%;
    margin-bottom: 0;
  }
  
  .contatti-form-wrapper input::placeholder,
  .contatti-form-wrapper textarea::placeholder {
    color: #555;
    font-weight: 400;
  }
  
  /* ============================================================
     PRIVACY + SUBMIT
     ============================================================ */
  
  .privacy-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    padding: 0;
    flex-wrap: nowrap;
    margin-top: 0.5rem;
  }
  
  /* Rimuove interferenze dei <p> generati da CF7 */
  .privacy-submit-row > div > p {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
  }
  
  /* Privacy a sinistra */
  .privacy-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }
  
  /* Submit a destra */
  .submit-section {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .submit-section > p {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
  }
  
  /* ====== Pulsante INVIA ====== */
  .wpcf7-submit {
    background-color: #1d1d1b !important;
    color: #fff !important;
    border: none;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    padding: 0.6rem 1.5rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    display: inline-block;
    margin: 0;
  }
  
  .wpcf7-submit:hover {
    background-color: #1D1D1B !important;
  }
  
  /* Nascondi lo spinner */
  .wpcf7-spinner {
    display: none !important;
  }
  
  /* ============================================================
     TOGGLE PRIVACY PERSONALIZZATO
     ============================================================ */
  
  /* Nascondi tutti i <br> dentro il label */
  .privacy-toggle-wrapper br {
    display: none;
  }
  
  .privacy-toggle-wrapper {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
    color: #1D1D1B;
  }
  
  /* Rimuovi stili lista CF7 */
  .privacy-section .wpcf7-list-item {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
  }
  
  .privacy-section .wpcf7-list-item-label {
    display: none !important;
  }
  
  /* Container del checkbox */
  .privacy-section .wpcf7-checkbox {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
  }
  
  /* Nascondi il checkbox originale di CF7 e stilizzalo come toggle */
  .privacy-section input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 50px;
    height: 28px;
    background-color: #fff;
    border: 2px solid #1d1d1b;
    border-radius: 28px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    margin: 0 !important;
    flex-shrink: 0;
  }
  
  /* Pallino interno */
  .privacy-section input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background-color: #FAB906;
    border: 2px solid #1d1d1b;
    border-radius: 50%;
    transition: transform 0.3s ease;
  }
  
  /* Stato checked */
  .privacy-section input[type="checkbox"]:checked {
    background-color: #e8c85f;
    border-color: #1d1d1b;
  }
  
  .privacy-section input[type="checkbox"]:checked::before {
    transform: translateX(22px);
    background-color: #1d1d1b;
  }
  
  /* Testo privacy */
  .privacy-text {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    color: #1D1D1B;
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
    display: inline-block;
  }
  
  .privacy-text:hover {
    text-decoration: underline;
  }
  
  /* ============================================================
     MESSAGGI DI STATO
     ============================================================ */
  
  .contatti-form-wrapper .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  .contatti-form-wrapper .wpcf7-mail-sent-ng,
  .contatti-form-wrapper .wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  /* ============================================================
     RESPONSIVE
     ============================================================ */
  
  @media (max-width: 991.98px) {
    .contatti-section {
      padding: 60px 0;
    }
  
    .contatti-title {
      margin-bottom: 3rem;
    }
  
    .contatti-form-wrapper {
      padding: 1.5rem;
    }
  
    .contatti-form-row {
      grid-template-columns: 1fr;
    }
  
    .privacy-submit-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
  
    .submit-section {
      margin-left: 0;
      width: 100%;
      justify-content: flex-start;
    }
  
    .wpcf7-submit {
      align-self: flex-start;
      margin-top: 0;
      width: auto;
    }
  }
  
  /* Mobile Contatti Section */
  @media (max-width: 767.98px) {
    .contatti-section {
      padding: 40px 0;
      background-color: #ffb800;
    }
    
    .contatti-title {
      font-size: clamp(18px, 5vw, 22px);
      padding: 0 20px;
      margin-bottom: 1.5rem;
    }
    
    .contatti-form-wrapper {
      padding: 0;
    }
    
    .contatti-form-row {
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }
    
    .contatti-form-wrapper input[type="text"],
    .contatti-form-wrapper input[type="tel"],
    .contatti-form-wrapper textarea {
      padding: 1rem 0.75rem;
      font-size: 14px;
      margin-bottom: 0.88rem;
      border-radius: 4px;
    }
    
    .contatti-form-wrapper textarea {
      min-height: 120px;
      margin-bottom: 0.88rem;
    }
    
    .privacy-submit-row {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 1rem;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      padding: 0 0px;
    }
    
    .privacy-section {
      flex: 1 1 auto;
      min-width: 0;
      order: 1;
      max-width: calc(100% - 140px);
    }
    
    .submit-section {
      flex: 0 0 auto;
      margin-left: auto;
      order: 2;
      display: flex !important;
      justify-content: flex-end;
      align-items: center;
      visibility: visible !important;
      opacity: 1 !important;
      max-width: 120px;
    }
    
    .submit-section > p {
      display: flex !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      align-items: center;
      visibility: visible !important;
      opacity: 1 !important;
      box-sizing: border-box;
    }
    
    .submit-section input[type="submit"],
    .submit-section button,
    .submit-section .wpcf7-submit,
    .submit-section p .wpcf7-submit,
    .submit-section p input[type="submit"],
    .wpcf7-submit,
    input.wpcf7-submit {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      padding: 0.625rem 1rem !important;
      font-size: 12px !important;
      border-radius: 4px;
      display: inline-block !important;
      visibility: visible !important;
      opacity: 1 !important;
      background-color: #1d1d1b !important;
      color: #fff !important;
      border: none !important;
      cursor: pointer;
      margin: 0 !important;
      position: relative !important;
      z-index: 1 !important;
      box-sizing: border-box !important;
    }
    
    /* Stili per il toggle privacy mobile */
    .privacy-section .privacy-toggle-wrapper {
      font-size: 12px !important;
      gap: 8px !important;
    }
    
    .privacy-section .privacy-text {
      font-size: 12px !important;
      line-height: 1.4;
      white-space: normal !important;
    }
    
    .privacy-section input[type="checkbox"] {
      width: 40px !important;
      height: 22px !important;
      min-width: 40px !important;
      min-height: 22px !important;
      border-radius: 22px !important;
      border: 2px solid #1d1d1b !important;
      box-sizing: border-box !important;
    }
    
    .privacy-section input[type="checkbox"]::before {
      width: 14px !important;
      height: 14px !important;
      top: 2px !important;
      left: 2px !important;
      border: 1px solid #1d1d1b !important;
      box-sizing: border-box !important;
    }
    
    .privacy-section input[type="checkbox"]:checked {
      background-color: #FAB906 !important;
    }
    
    .privacy-section input[type="checkbox"]:checked::before {
      transform: translateX(18px) !important;
      background-color: #1d1d1b !important;
      left: 2px !important;
    }
    
    /* Assicura che il bottone con has-spinner sia visibile */
    .submit-section .has-spinner {
      display: inline-block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }

/* ============================================================
   FineCONTATTI SECTION - Versione definitiva (identica allo screenshot + privacy GDPR)
   ============================================================ */

/* **************** Footer *****************/
.footer-main {
    background-color: #282828;
    color: #fff;
    width: 100%;
    min-height: 142px;
    padding: 0;
    margin: 0;
    position: relative;
}

.footer-main .container {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.footer-top {
    margin-bottom: .8rem;
    border-bottom: 1px solid #EBEBEB;
    padding-bottom: .8rem;
}

.footer-top-left {
    display: flex;
    flex-direction: column;
}

.footer-company-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff; 
    margin-bottom: 0.20rem;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.775rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

.footer-info-item {
    margin: 0;
    color: #fff !important;
}

.footer-info-item a{
    margin: 0;
    color: #fff !important;
    text-decoration: none !important;
}

.footer-info-separator {
    margin: 0 0.5rem;
    color: #fff;
}

.footer-link {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    color: #fff;
}

.footer-separator {
    display: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left,
.footer-bottom-right {
    flex: 0 0 auto;
}

.footer-copyright {
    font-size: 0.775rem;
    font-weight: 400;
    color: #fff;
    font-family: "Montserrat", sans-serif;
}

.footer-design-credit {
    font-size: 0.775rem;
    font-weight: 400;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;    
}

.footer-design-credit a {
    color: #fff;
    text-decoration: none;
}

.footer-design-credit .design-credit-prefix {
    margin-right: 0.35rem;
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    .footer-main {
        height: auto;
        min-height: 142px;
    }
    
    .footer-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-info-separator {
        display: none;
    }
    
    .footer-info-item {
        margin-bottom: 0.25rem;
    }

    .footer-info-item a {
        color: #fff !important;
        text-decoration: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Mobile Footer */
@media (max-width: 767.98px) {
    .footer-main {
        min-height: auto;
    }
    
    .footer-main .container {
        padding: 1.5rem 20px;
    }
    
    .footer-top {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #EBEBEB;
    }
    
    .footer-company-name {
        font-size: clamp(16px, 4vw, 18px);
        margin-bottom: 0.75rem;
    }
    
    .footer-info {
        font-size: clamp(12px, 3vw, 14px);
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.8;
    }
    
    .footer-info-separator {
        display: none;
    }
    
    .footer-info-item {
        margin-bottom: 0.25rem;
        display: block;
    }
    
    .footer-link {
        text-decoration: underline;
    }
.footer-info-item a,
.footer-info-item a:visited,
.footer-info-item a:hover,
.footer-info-item a:active {
    color: #fff !important;
    text-decoration: none !important;
}

    .footer-link {
        text-decoration: underline;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 1rem;
    }
    
    .footer-bottom-left,
    .footer-bottom-right {
        width: 100%;
    }
    
    .footer-copyright,
    .footer-design-credit {
        font-size: 0.8rem;
    }
    
    .footer-design-credit {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }
}
/* **************** Fine Footer *****************/




/***************** 
 * Template società - Hero Section
 * Layout: 50% bianco + 50% immagine (960px + 960px = 1920px)
 * Contenuto: Container 1400px overlay centrato
 ******************** */

/* ============================================
   VARIABILI E RESET
   ============================================ */
   :root {
    --navbar-height: 80px;
    --hero-height: 680px;
    --hero-bg-white: #fff;
    --hero-bg-fallback: #f5f5f5;
    --icona-bg: #FFB800;
    --btn-bg: #1D1D1B;
    --btn-hover: #1D1D1B;
    --text-color: #1D1D1B;
}

@media (max-width: 991.98px) {
    :root {
        --navbar-height: 60px;
    }
}

/* ============================================
   HERO SECTION - CONTAINER PRINCIPALE
   ============================================ */
.hero-societa-section {
    margin-top: var(--navbar-height);
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: var(--hero-height);
}

/* Rimuove margin-top se navbar è nascosto (scroll homepage) */
body.home #mainNavbar.navbar-hidden ~ main .hero-societa-section,
body.home #mainNavbar[style*="transform: translateY(-100%)"] ~ main .hero-societa-section {
    margin-top: 0;
}

/* ============================================
   LAYOUT A DUE COLONNE (50% + 50%)
   ============================================ */
.hero-societa-main-container {
    position: relative;
    width: 100%;
    height: var(--hero-height);
}

.hero-societa-row {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* COLONNA SINISTRA - Background bianco (960px = 50%) */
.hero-societa-content-col {
    background-color: var(--hero-bg-white);
    width: 50%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

/* COLONNA DESTRA - Immagine (960px = 50%) */
.hero-societa-image-col {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    background-color: var(--hero-bg-fallback);
    flex-shrink: 0;
}

/* ============================================
   IMMAGINE HERO (962x680px)
   ============================================ */
.hero-societa-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-societa-image {
    width: 962px;
    height: 680px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   CONTAINER OVERLAY (1400px) - CONTENUTO
   ============================================ */
.hero-societa-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none; /* Permette click attraverso il container */
}

.hero-societa-overlay-container .container {
    pointer-events: auto; /* Riattiva click sul contenuto */
}

.hero-societa-overlay-container .row {
    height: 100%;
}

.hero-societa-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

/* ============================================
   ICONA HERO
   ============================================ */
.hero-societa-icona {
    margin-bottom: 2rem;
}

.hero-societa-icona-wrapper {
    width: 120px;
    height: 120px;
    background-color: var(--icona-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hero-societa-icona-img {
    object-fit: contain;
}

/* ============================================
   TITOLO HERO
   ============================================ */
.hero-societa-title {
    font-size: clamp(48px, 4.5vw, 81px); /* Responsive: da 48px a 81px */
    font-weight: 500; /* Medium */
    color: var(--text-color);
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* ============================================
   DESCRIZIONE HERO
   ============================================ */
.hero-societa-descrizione {
    font-size: clamp(18px, 1.8vw, 25px); /* Responsive: da 18px a 25px */
    font-weight: 600; /* Semibold */
    color: var(--text-color);
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 2rem;
}

/* ============================================
   BOTTONI HERO
   ============================================ */
.hero-societa-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-societa-hero {
    background-color: var(--btn-bg);
    color: #fff;
    padding: 0.875rem 2rem;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    border: none;
    border-radius: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-societa-hero:hover {
    background-color: var(--btn-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Desktop Grande (1400px - 1920px) */
@media (min-width: 1400px) and (max-width: 1920px) {
    /* Layout mantiene 50/50 */
}

/* Desktop Piccolo (992px - 1399px) */
@media (max-width: 1399.98px) {
    :root {
        --hero-height: 600px;
    }
    
    .hero-societa-content-wrapper {
        padding: 2.5rem 0;
    }
    
    .hero-societa-image {
        height: 600px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    :root {
        --hero-height: 550px;
    }
    
    /* Colonne mantengono 50/50 ma con altezza ridotta */
    .hero-societa-image {
        height: 550px;
    }
    
    .hero-societa-icona-wrapper {
        width: 100px;
        height: 100px;
        padding: 20px;
    }
    
    .hero-societa-content-wrapper {
        padding: 2rem 0;
    }
    
    /* Bottoni in colonna su tablet */
    .hero-societa-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-societa-hero {
        width: 100%;
        max-width: 300px;
    }
}

/* Tablet Piccolo / Mobile Grande (576px - 767px) */
@media (max-width: 767.98px) {
    /* Layout passa a STACK VERTICALE */
    .hero-societa-main-container {
        height: auto;
        min-height: 500px;
    }
    
    .hero-societa-row {
        flex-direction: column;
    }
    
    /* Colonne diventano 100% larghezza */
    .hero-societa-content-col {
        width: 100%;
        min-height: 400px;
        order: 1;
    }
    
    .hero-societa-image-col {
        width: 100%;
        min-height: 300px;
        order: 2;
    }
    
    /* Immagine responsive */
    .hero-societa-image {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
    
    .hero-societa-overlay-container .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .hero-societa-content-wrapper {
        padding: 2rem 0;
    }
}

/* Mobile (fino a 575px) */
@media (max-width: 575.98px) {
    .hero-societa-section {
        min-height: auto;
    }
    
    .hero-societa-main-container {
        min-height: 450px;
    }
    
    .hero-societa-content-col {
        min-height: 350px;
    }
    
    .hero-societa-image-col {
        min-height: 250px;
    }
    
    .hero-societa-image {
        height: 250px;
    }
    
    .hero-societa-icona-wrapper {
        width: 80px;
        height: 80px;
        padding: 16px;
    }
    
    .hero-societa-icona {
        margin-bottom: 1.5rem;
    }
    
    .hero-societa-descrizione {
        margin-bottom: 1.5rem;
    }
    
    .hero-societa-overlay-container .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .btn-societa-hero {
        padding: 0.75rem 1.5rem;
        font-size: 13px;
        max-width: 100%;
    }
}

/* Mobile Molto Piccolo (fino a 380px) */
@media (max-width: 380px) {
    .hero-societa-title {
        font-size: 24px;
    }
    
    .hero-societa-descrizione {
        font-size: 14px;
    }
    
    .btn-societa-hero {
        font-size: 12px;
        padding: 0.625rem 1.25rem;
    }
}

/* Fine Hero Section Società */


/* ================================================
   RESPONSIVE DESIGN - FIX 768px - 1440px
   Tablet, Laptop 13" e schermi medi
   MEDIA QUERY UNIFICATA CON CLAMP()
   SOSTITUISCE IL VECCHIO BLOCCO 1024-1366px
   ================================================ */
@media (min-width: 768px) and (max-width: 1440px) {
    
    /* ===== CONTAINER GLOBALE ===== */
    .container {
        max-width: 1180px !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    
    /* ===== NAVBAR ===== */
    #mainNavbar .container {
        max-width: 1180px !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    
    #mainNavbar .navbar-logo-img {
        max-height: clamp(35px, 3.5vw, 50px);
        height: auto;
    }
    
    #mainNavbar {
        padding: 0.8rem 0;
    }
    
    .navbar-social-menu {
        gap: 1.2rem;
    }
    
    .navbar-icon-img {
        width: clamp(20px, 2vw, 24px);
        height: clamp(20px, 2vw, 24px);
    }
    
    /* ===== HERO SECTION ===== */
    .hero-section {
        min-height: auto;
        overflow: hidden !important;
    }
    
    .hero-section .hero-main-container {
        position: relative !important;
        width: 100% !important;
        height: 870px !important;
        overflow: hidden !important;
    }
    
    .hero-section .hero-row {
        display: flex !important;
        flex-direction: row !important;
        height: 870px !important;
        min-height: 870px !important;
        overflow: hidden !important;
        width: 100% !important; /* Assicura che la riga occupi tutta la larghezza */
    }
    
    /* Colonna nera - responsive e proporzionale */
    .hero-section .hero-content-col {
        width: clamp(320px, 35vw, 450px) !important; /* Aumentata da 280px a 320px per dare più spazio al contenuto */
        min-width: 320px !important; /* Larghezza minima aumentata per evitare sovrapposizioni */
        max-width: 450px !important;
        height: 870px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important; /* Evita che il contenuto esca dalla colonna */
    }
    
    /* Colonna immagine - usa flex-grow per prendere spazio restante con larghezza minima garantita */
    .hero-section .hero-image-col {
        flex: 1 1 0% !important;
        min-width: 500px !important; /* Larghezza minima fissa garantita */
        width: auto !important;
        height: 870px !important;
        flex-shrink: 0 !important; /* Non permettere di restringersi sotto min-width */
        flex-grow: 1 !important;
    }
    
    /* Container overlay - allineato al container principale */
    .hero-section .hero-overlay-container {
        display: flex;
        align-items: center;
    }
    
    .hero-section .hero-overlay-container .container {
        max-width: 1180px !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    
    /* Content wrapper - contenuto testo */
    .hero-section .hero-content-wrapper {
        max-width: 100% !important; /* Non superare mai la larghezza della colonna */
        width: 100% !important;
        padding: clamp(1.5rem, 2vw, 2.5rem) clamp(20px, 3vw, 40px) !important; /* Padding laterale per evitare sovrapposizioni */
        box-sizing: border-box !important;
    }
    
    /* Logo hero - ridotto per dare più spazio al testo */
    .hero-section .hero-logo {
        margin-bottom: clamp(20px, 2.2vw, 28px) !important; /* Ridotto margine */
        margin-top: clamp(15px, 1.8vw, 25px) !important; /* Ridotto margine */
    }
    
    .hero-section .hero-logo-img {
        max-width: clamp(110px, 12vw, 150px) !important; /* Ridotto da 130px-170px a 110px-150px */
        width: auto !important;
        height: auto !important;
    }
    
    /* Titolo hero - scalabile e ridotto per evitare sovrapposizioni */
    .hero-section .hero-title {
        font-size: clamp(20px, 2.2vw, 26px) !important; /* Ridotto da 26px-38px a 20px-32px */
        line-height: 1.2 !important; /* Aumentato leggermente per migliore leggibilità */
        margin-bottom: 0.75rem !important; /* Ridotto margine */
        letter-spacing: -0.02em;
    }
    
    /* Sottotitolo - scalabile e ridotto */
    .hero-section .hero-subtitle {
        font-size: clamp(13px, 1.3vw, 16px) !important; /* Ridotto da 15px-19px a 13px-16px */
        margin-bottom: 1rem !important; /* Ridotto margine */
        line-height: 1.4 !important;
    }
    
    /* Bottone - scalabile e ridotto */
    .hero-section .btn-hero {
        font-size: clamp(12px, 1.2vw, 15px) !important; /* Ridotto da 14px-17px a 12px-15px */
        padding: clamp(0.5rem, 0.6vw, 0.7rem) clamp(1.2rem, 1.4vw, 1.6rem) !important; /* Ridotto padding */
        letter-spacing: 0.05em;
    }
    
    /* Hamburger menu - posizionamento dinamico */
    .hero-section .btn-hero-menu {
        right: calc((100vw - 1180px) / 2 + 32px) !important;
        top: clamp(25px, 2.8vw, 32px) !important;
        width: clamp(35px, 3.5vw, 40px);
        height: clamp(35px, 3.5vw, 40px);
    }
    
    .hero-section .btn-hero-menu .hero-menu-icon {
        width: clamp(20px, 2.2vw, 24px);
        height: clamp(20px, 2.2vw, 24px);
    }
    
    /* Fix per schermi più piccoli dove il calcolo non funziona */
    @media (max-width: 1200px) {
        .hero-section .btn-hero-menu {
            right: 32px !important;
        }
    }
    
    /* Fix per schermi stretti dove l'immagine potrebbe scomparire */
    @media (max-width: 1200px) {
        .hero-section .hero-content-col {
            width: clamp(300px, 30vw, 400px) !important;
            min-width: 300px !important;
            max-width: 400px !important;
        }
        
        .hero-section .hero-image-col {
            min-width: 450px !important;
            flex-shrink: 0 !important;
        }
        
        .hero-section .hero-content-wrapper {
            padding-left: clamp(15px, 2.5vw, 30px) !important;
            padding-right: clamp(15px, 2.5vw, 30px) !important;
        }
        
        /* Riduzione testo per schermi stretti */
        .hero-section .hero-title {
            font-size: clamp(18px, 2vw, 28px) !important;
        }
        
        .hero-section .hero-subtitle {
            font-size: clamp(12px, 1.2vw, 15px) !important;
        }
    }
    
    @media (max-width: 1100px) {
        .hero-section .hero-content-col {
            width: clamp(300px, 32vw, 380px) !important;
            min-width: 300px !important;
            max-width: 380px !important;
        }
        
        .hero-section .hero-image-col {
            min-width: 450px !important;
            flex-shrink: 0 !important;
        }
        
        .hero-section .hero-content-wrapper {
            padding-left: clamp(15px, 2.5vw, 25px) !important;
            padding-right: clamp(15px, 2.5vw, 25px) !important;
        }
        
        /* Riduzione testo */
        .hero-section .hero-title {
            font-size: clamp(17px, 1.9vw, 26px) !important;
        }
        
        .hero-section .hero-subtitle {
            font-size: clamp(11px, 1.1vw, 14px) !important;
        }
        
        .hero-section .hero-logo-img {
            max-width: clamp(100px, 11vw, 130px) !important;
        }
    }
    
    @media (max-width: 1000px) {
        .hero-section .hero-content-col {
            width: clamp(300px, 35vw, 350px) !important;
            min-width: 300px !important;
            max-width: 350px !important;
        }
        
        .hero-section .hero-image-col {
            min-width: 400px !important;
            flex-shrink: 0 !important;
        }
        
        .hero-section .hero-content-wrapper {
            padding-left: clamp(15px, 2vw, 20px) !important;
            padding-right: clamp(15px, 2vw, 20px) !important;
        }
        
        /* Riduzione testo più aggressiva */
        .hero-section .hero-title {
            font-size: clamp(16px, 1.8vw, 24px) !important;
            line-height: 1.15 !important;
        }
        
        .hero-section .hero-subtitle {
            font-size: clamp(11px, 1vw, 13px) !important;
        }
        
        .hero-section .hero-logo-img {
            max-width: clamp(90px, 10vw, 120px) !important;
        }
        
        .hero-section .btn-hero {
            font-size: clamp(11px, 1.1vw, 13px) !important;
            padding: clamp(0.45rem, 0.5vw, 0.6rem) clamp(1rem, 1.2vw, 1.4rem) !important;
        }
    }
    
    @media (max-width: 900px) {
        .hero-section .hero-content-col {
            width: clamp(300px, 38vw, 340px) !important;
            min-width: 300px !important;
            max-width: 340px !important;
        }
        
        .hero-section .hero-image-col {
            min-width: 400px !important;
            flex-shrink: 0 !important;
        }
        
        .hero-section .hero-content-wrapper {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
        
        /* Riduzione testo ancora più aggressiva */
        .hero-section .hero-title {
            font-size: clamp(15px, 1.6vw, 22px) !important;
            line-height: 1.1 !important;
            margin-bottom: 0.5rem !important;
        }
        
        .hero-section .hero-subtitle {
            font-size: clamp(10px, 0.95vw, 12px) !important;
            margin-bottom: 0.75rem !important;
        }
        
        .hero-section .hero-logo-img {
            max-width: clamp(85px, 9vw, 110px) !important;
        }
        
        .hero-section .btn-hero {
            font-size: clamp(10px, 1vw, 12px) !important;
            padding: clamp(0.4rem, 0.45vw, 0.55rem) clamp(0.9rem, 1vw, 1.2rem) !important;
        }
    }
    
    /* Fix per schermi molto stretti (vicino al breakpoint mobile) */
    @media (max-width: 800px) {
        .hero-section .hero-content-col {
            width: min(320px, calc(100vw - 400px)) !important;
            max-width: calc(100vw - 400px) !important;
            min-width: 300px !important;
        }
        
        .hero-section .hero-image-col {
            min-width: 400px !important;
            flex-shrink: 0 !important;
        }
        
        .hero-section .hero-content-wrapper {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
        
        /* Riduzione testo massima */
        .hero-section .hero-title {
            font-size: clamp(14px, 1.5vw, 20px) !important;
            line-height: 1.1 !important;
            margin-bottom: 0.5rem !important;
        }
        
        .hero-section .hero-subtitle {
            font-size: clamp(10px, 0.9vw, 11px) !important;
            margin-bottom: 0.75rem !important;
        }
        
        .hero-section .hero-logo-img {
            max-width: clamp(80px, 8.5vw, 100px) !important;
        }
        
        .hero-section .btn-hero {
            font-size: clamp(10px, 0.95vw, 11px) !important;
            padding: clamp(0.4rem, 0.4vw, 0.5rem) clamp(0.8rem, 0.9vw, 1rem) !important;
        }
    }
    
    /* Immagine hero - assicura sempre visibilità */
    .hero-section .hero-image-col {
        visibility: visible !important;
        overflow: hidden !important; /* Mantiene il crop dell'immagine */
        display: flex !important; /* Usa flex per garantire che il contenuto sia visibile */
    }
    
    .hero-section .hero-image-wrapper {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-section .hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* ===== BILANCIO SOSTENIBILITÀ SECTION ===== */
    .bilancio-sostenibilita-section {
        padding: clamp(50px, 6vw, 65px) 0;
        scroll-margin-top: 70px;
    }
    
    .bilancio-title {
        font-size: clamp(24px, 2.5vw, 32px) !important;
        margin-bottom: 2rem !important;
        line-height: 1.2;
    }
    
    .bilancio-description {
        max-width: clamp(480px, 52vw, 580px) !important;
    }
    
    .bilancio-description p {
        font-size: clamp(15px, 1.5vw, 18px) !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem;
    }
    
    .bilancio-description p:first-of-type {
        font-size: clamp(18px, 1.9vw, 22px) !important;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }
    
    .bilancio-image-wrapper {
        width: 100%;
        height: auto;
    }
    
    .bilancio-image {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    
    /* ===== CRESCITA RESPONSABILE SECTION ===== */
    .crescita-responsabile-section {
        padding: clamp(50px, 6vw, 70px) 0;
    }
    
    .crescita-title {
        font-size: clamp(24px, 2.5vw, 32px) !important;
        margin-bottom: clamp(2rem, 2.5vw, 2.8rem) !important;
        line-height: 1.3;
    }
    
    .crescita-card {
        padding: 0;
        height: 100%;
    }
    
    .crescita-card-title {
        font-size: clamp(22px, 2.4vw, 30px) !important;
        margin-bottom: clamp(1.2rem, 1.5vw, 1.6rem) !important;
        line-height: 1.3;
    }
    
    /* Icona circolare con sfondo giallo */
    .crescita-card-icona {
        width: clamp(80px, 8.5vw, 95px) !important;
        height: clamp(80px, 8.5vw, 95px) !important;
        top: clamp(-28px, -3vw, -35px) !important;
        right: clamp(28px, 3.2vw, 36px) !important;
        border: 2px solid #fff;
    }
    
    .crescita-icona-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* Immagine card - mantiene proporzioni */
    .crescita-image-img {
        width: 100% !important;
        max-width: clamp(360px, 38vw, 420px) !important;
        height: auto !important;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .crescita-card-image {
        position: relative;
        margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    }
    
    /* Bottone - scalabile */
    .btn-crescita {
        font-size: clamp(14px, 1.4vw, 17px) !important;
        padding: clamp(0.6rem, 0.7vw, 0.8rem) clamp(1.5rem, 1.8vw, 2rem) !important;
    }
    
    /* ===== GIMA NUTRIRE QUALITÀ SECTION ===== */
    .gima-nutrire-qualita-section {
        padding: clamp(50px, 6vw, 70px) 0;
    }
    
    .gima-title {
        font-size: clamp(24px, 2.5vw, 32px) !important;
        margin-bottom: clamp(2rem, 2.5vw, 2.8rem) !important;
        line-height: 1.3;
    }
    
    /* Blocchi contenuto */
    .gima-blocco {
        max-width: clamp(500px, 56vw, 600px) !important;
        margin-bottom: clamp(2rem, 2.5vw, 2.8rem) !important;
    }
    
    .gima-blocco-header {
        display: flex;
        align-items: flex-start;
        gap: clamp(12px, 1.5vw, 18px);
        margin-bottom: clamp(0.8rem, 1vw, 1rem);
    }
    
    .gima-blocco-icona {
        width: clamp(48px, 5.2vw, 65px);
        height: clamp(48px, 5.2vw, 65px);
        min-width: clamp(48px, 5.2vw, 65px);
        flex-shrink: 0;
    }
    
    .gima-blocco-icona img,
    .gima-icona-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .gima-blocco-title {
        font-size: clamp(18px, 1.9vw, 23px) !important;
        line-height: 1.3;
        margin: 0;
    }
    
    .gima-blocco-description {
        font-size: clamp(15px, 1.5vw, 18px) !important;
        max-width: clamp(480px, 52vw, 560px) !important;
        line-height: 1.6;
    }
    
    .gima-blocco-description p {
        margin-bottom: 0.8rem;
    }
    
    /* Box investimento - responsive e fluido */
    .gima-investimento-box {
        width: 100% !important;
        max-width: clamp(580px, 64vw, 680px) !important;
        height: auto !important;
        min-height: clamp(480px, 52vh, 540px) !important;
        padding: clamp(2.2rem, 2.8vw, 3.2rem) !important;
        border-radius: clamp(40px, 4.5vw, 50px) 0 clamp(40px, 4.5vw, 50px) 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    /* Importo investimento */
    .gima-investimento-importo {
        display: flex;
        align-items: baseline;
        gap: clamp(8px, 1vw, 10px);
        margin-bottom: 1rem;
    }
    
    .gima-importo-numero,
    .gima-investimento-importo .number-fallback,
    .gima-investimento-importo .slot-counter {
        font-size: clamp(85px, 9.5vw, 110px) !important;
        font-weight: 600;
        line-height: 1;
    }
    
    .gima-importo-unita {
        font-size: clamp(48px, 5.5vw, 58px) !important;
        font-weight: 600;
        line-height: 1;
    }
    
    .gima-investimento-label {
        font-size: clamp(36px, 4.2vw, 46px) !important;
        line-height: 1.2 !important;
        margin-bottom: clamp(1rem, 1.3vw, 1.4rem);
    }
    
    .gima-investimento-descrizione {
        font-size: clamp(20px, 2.3vw, 27px) !important;
        line-height: 1.4 !important;
    }
    
    /* ===== CONTATTI SECTION ===== */
    .contatti-section {
        padding: clamp(50px, 6vw, 70px) 0;
    }
    
    .contatti-title {
        font-size: clamp(20px, 2.2vw, 24px) !important;
        margin-bottom: clamp(1.5rem, 1.8vw, 2rem) !important;
        line-height: 1.3;
    }
    
    /* Form wrapper */
    .contatti-form-wrapper {
        width: 100%;
    }
    
    /* Campi input - scalabili */
    .contatti-form-wrapper input[type="text"],
    .contatti-form-wrapper input[type="tel"],
    .contatti-form-wrapper textarea {
        font-size: clamp(12px, 1.2vw, 13px) !important;
        padding: clamp(0.7rem, 0.8vw, 0.85rem) clamp(0.6rem, 0.7vw, 0.75rem) !important;
        margin-bottom: 0.88rem;
    }
    
    .contatti-form-wrapper textarea {
        min-height: clamp(140px, 16vh, 180px);
    }
    
    /* Grid form */
    .contatti-form-row {
        gap: clamp(0.6rem, 0.7vw, 0.75rem);
    }
    
    /* Privacy e Submit row */
    .privacy-submit-row {
        gap: clamp(1.5rem, 1.8vw, 2rem);
        margin-top: clamp(0.4rem, 0.5vw, 0.5rem);
    }
    
    /* Toggle privacy - scalabile */
    .privacy-section input[type="checkbox"] {
        width: clamp(44px, 4.5vw, 50px) !important;
        height: clamp(25px, 2.6vw, 28px) !important;
        border-radius: clamp(25px, 2.6vw, 28px) !important;
    }
    
    .privacy-section input[type="checkbox"]::before {
        width: clamp(18px, 1.9vw, 20px) !important;
        height: clamp(18px, 1.9vw, 20px) !important;
    }
    
    .privacy-section input[type="checkbox"]:checked::before {
        transform: translateX(clamp(19px, 2vw, 22px)) !important;
    }
    
    /* Testo privacy */
    .privacy-text {
        font-size: clamp(14px, 1.4vw, 16px) !important;
        line-height: 1.4;
    }
    
    /* Bottone submit - scalabile */
    .wpcf7-submit {
        font-size: clamp(10px, 1vw, 11px) !important;
        padding: clamp(0.5rem, 0.6vw, 0.6rem) clamp(1.2rem, 1.4vw, 1.5rem) !important;
        border-radius: 0;
    }
    
    /* ===== FOOTER ===== */
    .footer-main {
        min-height: auto;
    }
    
    .footer-main .container {
        padding: clamp(1.5rem, 1.8vw, 2rem);
    }
    
    .footer-company-name {
        font-size: clamp(0.8rem, 0.85vw, 0.875rem);
        margin-bottom: 0.18rem;
    }
    
    .footer-info {
        font-size: clamp(0.7rem, 0.75vw, 0.775rem);
    }
    
    .footer-copyright,
    .footer-design-credit {
        font-size: clamp(0.7rem, 0.75vw, 0.775rem);
    }
    
    .footer-design-credit {
        padding: clamp(0.4rem, 0.5vw, 0.5rem) clamp(0.8rem, 1vw, 1rem);
    }
}

/* ================================================
   FINE OTTIMIZZAZIONI RESPONSIVE HOMEPAGE
   768px - 1440px
   ================================================ */