/* ================================================
   TPL-GOVERNANCE.CSS - VERSIONE COMPLETA E CORRETTA
   Senza duplicazioni - Con tutti i fix responsivi
   Data: 28 Novembre 2025
   ================================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1 {
    font-size: 80px;
    font-weight: 500;
    margin: 20px 0;
    text-transform: uppercase;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

p {
    margin-bottom: 15px;
    line-height: 1.7;
}

strong {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid #1D1D1B;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1D1D1B;
    color: #fff;
    border-radius: 0;
    font-size: 17px;
    font-weight: 400;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: #fff;
    color: #1D1D1B;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    background-color: #fff;
    height: 680px;
    display: flex;
    position: relative;
    overflow: hidden;
}

.page-template-tpl-governance .hero-section {
    margin-top: 80px;
}

.hero-section-desktop {
    display: flex;
}

@media (max-width: 767.98px) {
    .hero-section-desktop {
        display: none !important;
    }
}

.hero-container {
    flex: 0 0 50%;
    width: 50%;
    max-width: 700px;
    display: flex;
    align-items: center;
    padding-left: 0;
    padding-right: 60px;
    margin-left: auto;
    margin-right: 0;
}

.hero-content {
    width: 100%;
}

.hero-text-column {
    width: 100%;
}

.icon-badge {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.subtitle {
    font-size: 25px;
    line-height: 1.5;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image-column {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.hero-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ================================================
   HERO MOBILE
   ================================================ */
.hero-governance-mobile-container {
    display: none;
    background-color: #fff;
    min-height: 100vh;
    flex-direction: column;
}

@media (max-width: 767.98px) {
    .hero-governance-mobile-container {
        display: flex;
    }
}

.hero-governance-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
    position: relative;
    z-index: 10;
}

.hero-governance-mobile-logo {
    flex-shrink: 0;
}

.hero-governance-mobile-logo a {
    display: inline-block;
    text-decoration: none;
}

.hero-governance-mobile-logo-img {
    max-width: 51px;
    height: auto;
}

.btn-hero-governance-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-governance-menu-mobile .hero-menu-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hero-governance-mobile-content {
    padding: 50px 38px 58px 38px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-governance-mobile-icona {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-governance-mobile-icona img {
    max-width: 51px;
    height: auto;
    object-fit: contain;
}

.hero-governance-mobile-title {
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #1D1D1B !important;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 1rem;
}

.hero-governance-mobile-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #1D1D1B !important;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
}

.hero-governance-mobile-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
}

.btn-governance-mobile {
    background-color: #1D1D1B;
    border: 2px solid #1D1D1B;
    color: #fff;
    padding: 0.40rem .30rem;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.btn-governance-mobile:hover {
    background-color: #1D1D1B;
    color: #fff;
    border-color: #1D1D1B;
}

.hero-governance-mobile-image-wrapper {
    width: 100%;
    margin-top: auto;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.hero-governance-mobile-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FAB905;
    opacity: 0.88;
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 1;
}

.hero-governance-mobile-image {
    width: 100%;
    height: 480px;
    display: block;
    object-fit: cover;
    filter: sepia(30%) saturate(1.2) hue-rotate(5deg) brightness(0.95);
    position: relative;
    z-index: 0;
}

/* ================================================
   YELLOW INTRO SECTION
   ================================================ */
.yellow-intro-section {
    background-color: #fff;
    padding: 0;
}

.yellow-wrapper {
    display: flex;
    min-height: 400px;
}

.yellow-left {
    flex: 0 0 50%;
    background-color: #FAB905;
    display: flex;
    align-items: center;
    padding: 80px 60px 80px 0;
}

.yellow-text {
    max-width: 630px;
    margin-left: auto;
}

.yellow-text h2 {
    font-size: 35px;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
    color: #1D1D1B;
    text-transform: uppercase;
}

.yellow-right {
    flex: 0 0 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 80px 60px 80px 53px;
}

.white-text {
    max-width: 640px;
}

.white-text p {
    font-size: 20px;
    line-height: 1.7;
}

.white-text p:last-child {
    margin-bottom: 0;
}

/* ================================================
   CONTENT BLOCKS
   ================================================ */
.content-block {
    background-color: #fff;
    padding: 0;
}

.content-block.gray-bg {
    background-color: #f9f9f9;
}

.block-wrapper {
    display: flex;
    min-height: 450px;
}

/* Text Left + Image Right */
.block-text-left {
    flex: 0 0 50%;
    background-color: inherit;
    display: flex;
    align-items: center;
    padding: 50px 44px 50px 0;
    justify-content: start;
}

.block-text-left .block-text-content {
    max-width: 645px;
    margin-left: auto;
}

.block-image-right {
    flex: 0 0 50%;
    height: auto;
    overflow: hidden;
}

.block-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Image Left + Text Right */
.block-image-left {
    flex: 0 0 50%;
    height: auto;
    overflow: hidden;
}

.block-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.block-text-right {
    flex: 0 0 50%;
    background-color: inherit;
    display: flex;
    align-items: center;
    padding: 50px 0 50px 53px;
    justify-content: start;
}

.block-text-right .block-text-content {
    max-width: 650px;
    margin-right: auto;
}

.block-text-content h2 {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1D1D1B;
}

.block-text-content p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 0px;
}

/* ================================================
   OBJECTIVES 2026 SECTION
   ================================================ */
.objectives-section {
    background-color: #fff;
    padding: 70px 0;
}

.objectives-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    border-top: 1px solid #000;
}

.objectives-main-title {
    font-size: 34px;
    font-weight: 600;
    margin: 60px 0;
    color: #1D1D1B;
    text-align: center;
}

.objectives-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.objectives-image {
    width: 100%;
}

.objectives-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.objectives-text {
    display: flex !important;
    flex-direction: column;
    gap: 30px;
}

.objective-item h3 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FAB905;
    line-height: 1.4;
    text-transform: uppercase;
}

.objective-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    color: #333;
}

.objective-description {
    font-size: 20px;
    font-weight: 500;
}

/* ================================================
   RESPONSIVE DESIGN - FIX 768px - 1440px
   Tablet, Laptop 13" e schermi medi
   ================================================ */
@media (min-width: 768px) and (max-width: 1440px) {
    
    /* ===== HERO SECTION ===== */
    .hero-section {
        height: auto;
        min-height: 500px;
    }
    
    .page-template-tpl-governance .hero-section {
        margin-top: 60px;
    }
    
    .hero-section h1 {
        font-size: clamp(42px, 4vw, 60px) !important;
        line-height: 1.15;
    }
    
    .hero-container {
        max-width: 560px;
        padding-right: 30px;
    }
    
    .subtitle {
        font-size: clamp(16px, 1.6vw, 20px);
        margin-bottom: 25px;
    }
    
    .icon-badge {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .btn-primary {
        padding: 10px 22px;
        font-size: 15px;
    }
    
    .hero-image-column {
        min-height: 500px;
    }
    
    .hero-image-column img {
        min-height: 500px;
    }
    
    /* ===== YELLOW INTRO SECTION ===== */
    .yellow-wrapper {
        min-height: 350px;
    }
    
    .yellow-left {
        padding: 50px 40px 50px 26px;
    }
    
    .yellow-text {
        max-width: 522px;
    }
    
    .yellow-text h2 {
        font-size: clamp(24px, 2.5vw, 32px) !important;
        line-height: 1.3 !important;
    }
    
    .yellow-right {
        padding: 50px 15px 50px 40px;
    }
    
    .white-text {
        max-width: 540px;
    }
    
    .white-text p {
        font-size: clamp(15px, 1.5vw, 18px);
        line-height: 1.6;
    }
    
    /* ===== CONTENT BLOCKS ===== */
    .block-wrapper {
        min-height: 400px;
    }
    
    /* Text Left + Image Right */
    .block-text-left {
        padding: 40px 35px 40px 0;
    }
    
    .block-text-left .block-text-content {
        max-width: 526px;
    }
    
    /* Image Left + Text Right */
    .block-text-right {
        padding: 40px 0 40px 35px;
    }
    
    .block-text-right .block-text-content {
        max-width: 540px;
    }
    
    .block-text-content h2 {
        font-size: clamp(24px, 2.5vw, 32px) !important;
        margin-bottom: 18px;
        line-height: 1.3;
    }
    
    .block-text-content p {
        font-size: clamp(15px, 1.5vw, 18px) !important;
        line-height: 1.6;
        margin-bottom: 14px;
    }
    
    /* ===== OBJECTIVES 2026 SECTION ===== */
    .objectives-section {
        padding: 60px 0 70px;
    }
    
    .objectives-container {
        padding: 0 25px;
    }
    
    .objectives-main-title {
        font-size: clamp(24px, 2.8vw, 32px) !important;
        margin: 45px 0 40px !important;
    }
    
    .objectives-content {
        gap: 50px;
        grid-template-columns: clamp(420px, 45%, 540px) 1fr;
    }
    
    .objectives-image {
        max-width: 540px;
    }
    
    .objectives-text {
        gap: 26px;
    }
    
    .objective-item h3 {
        font-size: clamp(17px, 2vw, 22px) !important;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .objective-description,
    .objective-item p {
        font-size: clamp(14px, 1.5vw, 17px) !important;
        line-height: 1.6;
    }
}

/* ================================================
   RESPONSIVE DESIGN - TABLET E MOBILE
   Max-width: 1024px
   ================================================ */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        height: auto;
    }

    .hero-container {
        flex: 1;
        width: 100%;
        max-width: 100%;
        padding: 40px 30px;
        margin: 0 auto;
    }

    .hero-image-column {
        flex: 1;
        width: 100%;
        min-height: 400px;
    }

    .yellow-wrapper {
        flex-direction: column;
    }

    .yellow-left,
    .yellow-right {
        flex: 1;
        width: 100%;
        padding: 40px 30px;
    }

    .yellow-text {
        margin-left: 0;
    }

    .block-wrapper {
        flex-direction: column;
    }

    .block-text-left,
    .block-text-right,
    .block-image-left,
    .block-image-right {
        flex: 1;
        width: 100%;
    }

    .block-text-left,
    .block-text-right {
        padding: 40px 30px;
    }

    .block-text-left .block-text-content {
        margin-left: 0;
    }

    .block-text-right .block-text-content {
        margin-right: 0;
    }

    .block-image-left,
    .block-image-right {
        min-height: 400px;
    }

    .objectives-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .objectives-image {
        width: 100%;
    }
}

/* ================================================
   RESPONSIVE DESIGN - MOBILE
   Max-width: 768px
   ================================================ */
@media (max-width: 768px) {
    .hero-container {
        padding: 30px 20px;
    }

    .hero-image-column {
        min-height: 300px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .yellow-text h2 {
        font-size: 1.3rem;
    }

    .block-text-content h2 {
        font-size: 1.3rem;
    }

    .objectives-main-title {
        font-size: 1.5rem;
    }

    .objectives-section {
        padding: 60px 0;
    }
}

/* ================================================
   MOBILE SPECIFICS
   Max-width: 767.98px
   ================================================ */
@media (max-width: 767.98px) {
    /* Yellow Intro Section Mobile */
    .yellow-left {
        padding: 40px 38px;
    }

    .yellow-text {
        max-width: 100%;
        margin-left: 0;
    }

    .yellow-text h2 {
        font-size: 22px;
        font-weight: 700;
        text-transform: uppercase;
        line-height: 1.4;
        margin: 0;
        color: #1D1D1B;
    }

    .yellow-right {
        padding: 40px 38px;
    }

    .white-text {
        max-width: 100%;
    }

    .white-text p {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.7;
    }

    /* Content Blocks Mobile */
    .content-block .block-wrapper,
    .content-block.gray-bg .block-wrapper {
        flex-direction: column;
    }

    /* Immagine sempre prima (sopra) */
    .content-block .block-image-right,
    .content-block .block-image-left {
        order: -1;
        width: 100%;
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }

    .content-block .block-image-right img,
    .content-block .block-image-left img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: center;
    }

    /* Testo sempre dopo (sotto) */
    .content-block .block-text-left,
    .content-block .block-text-right {
        order: 1;
        width: 100%;
        padding: 40px 38px;
    }

    .content-block .block-text-left .block-text-content,
    .content-block .block-text-right .block-text-content {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Titoli gialli */
    .content-block .block-text-content h2 {
        font-size: 22px;
        font-weight: 700;
        text-transform: uppercase;
        color: #FAB905;
        margin-bottom: 20px;
    }

    /* Testo descrizione */
    .content-block .block-text-content p {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.7;
    }

    /* Objectives Section Mobile */
    .objectives-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .objectives-image {
        width: 100%;
        margin-bottom: 0;
    }

    .objectives-image img {
        width: 100%;
        height: 265px;
        object-fit: cover;
        object-position: center;
    }

    #objectivesCarousel {
        width: 100%;
        margin-top: 0;
    }

    .objective-item-mobile {
        padding: 40px 38px;
        background-color: #fff;
        min-height: auto;
    }

    .objective-title-mobile {
        font-size: 20px;
        font-weight: 700;
        text-transform: uppercase;
        color: #FAB905;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .objective-description-mobile {
        font-size: 16px;
        font-weight: 500;
        color: #1D1D1B;
        line-height: 1.7;
    }

    .objective-description-mobile p {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 1rem;
    }

    .objective-description-mobile p:last-child {
        margin-bottom: 0;
    }

    /* Indicatori carosello */
    .objectives-carousel-indicators {
        position: relative !important;
        margin: 20px 0 0 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;
    }

    .objectives-carousel-indicators button,
    .objectives-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: #FAB905 !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;
    }

    .objectives-carousel-indicators button.active,
    .objectives-carousel-indicators [type="button"].active {
        background-color: #1D1D1B !important;
    }
}

/* ================================================
   FIX HEADER GOVERNANCE - SOLO TEMPLATE GOVERNANCE
   Allineamento logo navbar
   ================================================ */
@media (min-width: 1024px) and (max-width: 1366px) {
    .page-template-tpl-governance #mainNavbar .container {
        max-width: 1180px !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

/* ================================================
   SCROLL OFFSET PER ANCHOR LINKS
   ================================================ */
#intro {
    scroll-margin-top: 80px;
}

/* ================================================
   FINE CSS COMPLETO E VERIFICATO
   ================================================ */