/* ------------------------------------------------
---------------------- HERO -----------------------
------------------------------------------------ */

.hero {
    height: 850px;
    background: var(--primary-teal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 150px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%),
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(0, 0, 0, 0.25) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 0 0 auto;
    max-width: 620px;
}

.hero-box {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: white;
    margin-bottom: 40px;
    line-height: 1.1;
}

.hero-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.hero-cta {
    font-family: 'Open Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(236, 105, 7, 0.3);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.hero-cta:hover {
    background: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
    box-shadow: 0 12px 28px rgba(236, 105, 7, 0.4);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.hero-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    padding-top: 300px;
}

@media (max-width: 1024px) {
    .hero {
        height: 700px;
    }

    .hero-container {
        padding: 0 30px;
    }

    .hero-content {
        max-width: 460px;
    }

    .hero-box {
        padding: 40px;
    }

    .hero-title {
        font-size: 42px;
    }
    
    .hero-text {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding-top: 200px;
        padding-bottom: 100px;
    }

    .hero-container {
        padding: 0 20px;
        justify-content: flex-start;
    }

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

    .hero-box {
        padding: 36px 32px;
    }

    .hero-image {
        position: absolute;
        right: -50px;
        bottom: 0;
        width: 70%;
        height: 100%;
        z-index: 1;
    }

    .hero-image img {
        height: 90%;
        width: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
        font-size: 17px;
    }

    .hero-image img {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 550px;
    }

    .hero-box {
        padding: 28px 24px;
    }

    .hero-title {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .hero-text {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-cta {
        padding: 14px 28px;
        font-size: 16px;
    }

    .hero-image img {
        display: none !important;
    }
}

/* ------------------------------------------------
-------------------- PILASTRI ---------------------
------------------------------------------------ */

.pilastri-section {
    padding: 120px 20px;
    background-color: var(--background-soft);
    position: relative;
    overflow: hidden;
}

.pilastri-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(23, 76, 79, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(4, 113, 36, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.pilastri-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pilastri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.pilastro-card {
    background: var(--background-light);
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pilastro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}


.pilastro-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    transition: all 0.4s ease;
}

.pilastro-card:nth-child(1) .pilastro-icon {
    background: linear-gradient(135deg, rgba(23, 76, 79, 0.1) 0%, rgba(23, 76, 79, 0.05) 100%);
    color: var(--primary-teal);
}

.pilastro-card:nth-child(2) .pilastro-icon {
    background: linear-gradient(135deg, rgba(4, 113, 36, 0.1) 0%, rgba(4, 113, 36, 0.05) 100%);
    color: var(--primary-green);
}

.pilastro-card:nth-child(3) .pilastro-icon {
    background: linear-gradient(135deg, rgba(236, 105, 7, 0.1) 0%, rgba(236, 105, 7, 0.05) 100%);
    color: var(--primary-orange);
}

.pilastro-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.pilastro-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
}

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

    .pilastri-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pilastro-card {
        padding: 32px 24px;
    }

    .pilastro-title {
        font-size: 22px;
    }
    
    .pilastro-description {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .pilastro-card {
        padding: 28px 20px;
    }

    .pilastro-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 24px;
    }

    .pilastro-title {
        font-size: 21px;
    }
    
    .pilastro-description {
        font-size: 16px;
    }
    
}

/* ------------------------------------------------
-------------------- CONTATORI --------------------
------------------------------------------------ */

.contatori-section {
    padding: 100px 20px;
    background: var(--text-dark);
}

.contatori-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.contatore-item {
    text-align: center;
}

.contatore-numero {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
}

.contatore-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .contatori-section {
        padding: 70px 20px;
    }

    .contatori-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contatore-numero {
        font-size: 48px;
    }

    .contatore-label {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .contatori-section {
        padding: 60px 20px;
    }

    .contatori-grid {
        gap: 40px;
    }

    .contatore-numero {
        font-size: 42px;
    }

    .contatore-label {
        font-size: 16px;
    }
}

/* ------------------------------------------------
--------------------- SERVIZI ---------------------
------------------------------------------------ */

.servizi-section {
    padding: 100px 20px;
    background-color: var(--background-soft);
    position: relative;
    overflow: hidden;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 32px;
}

.servizi-card {
    background: var(--background-light);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.servizi-card:hover {
    background-color: var(--secondary-yellow);
}


.servizi-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
    min-height: auto;
    display: flex;
    align-items: center;
}

.servizi-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .servizi-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .servizi-section {
        padding: 70px 20px;
    }
    
    .servizi-grid {
        grid-template-columns: 1fr; 
        gap: 24px;
    }
    
    .servizi-card {
        padding: 28px 24px;
        min-height: auto;
    }
    
    .servizi-title {
        min-height: auto;
        font-size: 23px;
    }
    
    .servizi-description {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .servizi-card {
        padding: 24px 20px;
    }
    
    .servizi-title {
        font-size: 21px;
    }
    
    .servizi-description {
        font-size: 16px;
    }
}



/* ------------------------------------------------
------------ LA BUSSOLA DEL PATRIMONIO ------------
------------------------------------------------ */
/* ------------------------------------------------
------------ LA BUSSOLA DEL PATRIMONIO ------------
------------------------------------------------ */
.bussola-section {
    padding: 100px 20px;
    background-color: var(--primary-teal);
    position: relative;
    overflow: hidden;
}
.bussola-section .section-subtitle {
    color: var(--secondary-yellow);
    font-family: 'Open Sans', sans-serif;
    font-size: 19px;
}
.bussola-section .section-title {
    color: #fff;
}
.bussola-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.bussola-text-card {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bussola-text {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 35px;
}
.bussola-text p {
    margin-bottom: 20px;
}
.bussola-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    text-decoration: none !important;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(236, 105, 7, 0.35);
    align-self: flex-start;
}
.bussola-cta:hover,.bussola-cta:focus {
    background: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
    box-shadow: 0 12px 32px rgba(236, 105, 7, 0.45);
    transform: translateY(-2px);
    color: white;
}
.cta-icon {
    width: 20px;
    height: 20px;
}
.bussola-image-container {
    flex: 1;
    position: relative;
    min-height: 500px;
}
.bussola-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 968px) {
    .bussola-content {
        flex-direction: column;
    }
    .bussola-image-container {
        order: -1;
        min-height: 300px;
    }
    .bussola-text-card {
        padding: 35px;
    }
    .bussola-text {
        font-size: 16px;
    }
}
@media (max-width: 576px) {
    .bussola-section {
        padding: 60px 20px;
    }
    .bussola-text-card {
        padding: 25px;
    }
    .bussola-cta {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
        font-size: 16px;
    }
    .bussola-image-container {
        min-height: 250px;
    }
}