/* ✅ Font Sansation per hero */
.sansation-regular {
    font-family: "Sansation", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    /* Rimosso il gradiente di sfondo */
    padding: 3rem 0;
}

/* Nuova classe per il contenuto */
.hero-content {
    min-height: 50vh;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    /* Centra verticalmente */
    justify-content: center;
    /* Centra orizzontalmente */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    filter: brightness(0.85) contrast(1.05);
}

.hero-background.loaded {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    /* Overlay uniforme e molto leggero */
    z-index: 2;
}

/* Elementi decorativi */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.12) 0%, transparent 50%);
    z-index: 1.5;
    pointer-events: none;
}

/* Contenuto principale */
.hero-text {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    font-family: "Sansation", sans-serif;
}

/* Sovrascriviamo solo per il testo normale, non per ShuffleText */
.hero-title:not(.shuffle-parent) {
    font-family: "Sansation", sans-serif;
}

/* Assicuriamoci che ShuffleText abbia la precedenza */
.hero-title .shuffle-parent {
    font-family: "Sansation", sans-serif !important;
    font-size: 4rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.subtitle {
    color: #e8e8e8;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-weight: 500;
    padding: 1rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-width: 180px;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    color: #ffffff;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.4));
}

.feature-item span {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover span {
    transform: translateY(-3px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Bottone CTA */
.cta-button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    border: none;
    padding: 1.2rem 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow:
        0 10px 30px rgba(0, 123, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 20px 40px rgba(0, 123, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #0084ff 0%, #0066cc 50%, #0052a3 100%);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Animazioni aggiuntive */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-features {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Responsive migliorato */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .hero-content {
        min-height: 40vh;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: -0.01em;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
        padding: 0.3rem;
    }

    .feature-item {
        min-width: 220px;
        justify-content: center;
        padding: 0.7rem 1.2rem;
        border-radius: 25px;
        /* Ripristino i bordi arrotondati su mobile */
        background: rgba(255, 255, 255, 0.1);
        /* Sfondo leggero su mobile */
    }

    /* Rimuovo i separatori su mobile */
    .feature-item:not(:last-child)::after {
        display: none;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 45vh;
        padding: 1.5rem 0;
    }

    .hero-content {
        min-height: 35vh;
        padding: 0.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

.hero-title-container {
    margin-bottom: 1.5rem;
}

.hero-title-shuffle {
    font-family: "Sansation", sans-serif !important;
    font-size: 5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: none !important;
    color: #ffffff !important;
}

/* Responsive per il nuovo titolo */
@media (max-width: 768px) {
    .hero-title-shuffle {
        font-size: 4rem !important;
    }
}

@media (max-width: 576px) {
    .hero-title-shuffle {
        font-size: 3rem !important;
    }
}

/* ✅ Font Sansation per titolo hero e varianti */
.hero-title-shuffle,
.hero-title-shuffle .shuffle-parent,
.hero-title-shuffle .shuffle-char,
.hero-title-shuffle .shuffle-word,
.hero-title-shuffle .shuffle-line,
.hero-title-shuffle span {
    font-family: "Sansation", sans-serif !important;
    font-weight: 700 !important;
}

/* ✅ REGOLE CON ALTA SPECIFICITÀ */
.hero-section .hero-text .hero-title-container .hero-title-shuffle .shuffle-parent .shuffle-char {
    font-family: "Sansation", sans-serif !important;
    font-weight: 700 !important;
}

/* ✅ PER GLI ELEMENTI CREATI DINAMICAMENTE */
.hero-title-shuffle [data-orig="1"] {
    font-family: "Sansation", sans-serif !important;
    font-weight: 700 !important;
}

/* ✅ ALTERNATIVA CON ID PER MASSIMA SPECIFICITÀ */
#autodigit-title {
    font-family: "Sansation", sans-serif !important;
}

#autodigit-title .shuffle-parent {
    font-family: "Sansation", sans-serif !important;
}

#autodigit-title .shuffle-text {
    font-family: "Sansation", sans-serif !important;
}.platform-overview-section {
    position: relative;
    overflow: hidden;
}

.platform-overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.2), transparent);
}

.section-title {
    color: #2c3e50;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #0d6efd;
    border-radius: 2px;
}

.overview-grid {
    display: grid;
    gap: 2rem;
    position: relative;
}

.overview-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-number {
    position: absolute;
    top: -15px;
    left: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(66, 153, 225, 0.3);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-card:hover .card-number {
    color: rgba(66, 153, 225, 0.4);
}

.overview-paragraph {
    color: #4a5568;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .overview-card {
        padding: 2rem;
    }

    .card-number {
        font-size: 1.5rem;
        top: -10px;
    }
}

.section-box {
    margin-bottom: 2rem;
    transition: box-shadow 0.2s, background 0.2s;
}

/* .section-clients {
    background: linear-gradient(120deg, #e3f0ff 0%, #f8fbff 100%);
} */

.section-approach {
    background: linear-gradient(120deg, #f8f8ff 0%, #eaf6f0 100%);
}

/* ✅ MODIFICA: Sezione Parliamone con background verde scuro */
.section-contact {
    background: #1e293b; /* ✅ STESSO COLORE BLU DELLA PRIMA SEZIONE */
    color: white;
}

.section-contact .section-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-contact .section-title::after {
    background: white;
}

.section-contact .overview-paragraph {
    color: rgb(255, 255, 255);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.section-contact .overview-paragraph.text-secondary {
    color: rgb(255, 255, 255);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.section-contact .section-icon {
    color: white;
}

.section-contact .contact-image {
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ✅ RIMUOVI: Il vecchio background gradient */
/* .section-contact {
    background: linear-gradient(120deg, #f0f4ff 0%, #f8f8ff 100%);
} */

.section-icon {
    font-size: 2.5rem;
    color: #4299e1;
    opacity: 0.85;
}

.clienti-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem auto;
    max-width: 400px;
}

.clienti-list-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
}

.clienti-list-item:last-child {
    border-bottom: none;
}

.clienti-label {
    flex: 1;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}

.clienti-hover-icon {
    opacity: 0;
    transform: translateX(10px) scale(0.8);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(.4,2,.6,1);
    margin-left: 0.5rem;
    font-size: 1.5rem;
    color: #4299e1;
    pointer-events: none;
}

.clienti-list-item:hover .clienti-label {
    transform: translateX(-12px);
}

.clienti-list-item:hover .clienti-hover-icon {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.section-contact .overview-paragraph.text-secondary {
    color: #6b7280;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-image {
    max-width: 340px;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    object-fit: cover;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.4rem !important;
    }
}

/* ✅ AGGIUNGI: Classi per le sezioni a larghezza piena */
.section-clients-fullwidth,
.section-approach-fullwidth,
.section-contact-fullwidth {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 0;
    padding-right: 0;
}

.section-clients-fullwidth .section-box,
.section-approach-fullwidth .section-box,
.section-contact-fullwidth .section-box {
    border-radius: 0;
    margin-bottom: 0;
}

.section-clients-fullwidth .container,
.section-approach-fullwidth .container,
.section-contact-fullwidth .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* ✅ MODIFICA: Rimuovi padding dal container della sezione contact */
.section-contact-fullwidth .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.section-contact-fullwidth .section-box .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ✅ AGGIUNGI: Stili per l'immagine clienti */
.clients-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100%;
    width: 100%;
}

.clients-image {
    width: 100%;
    object-fit: cover;
}

/* Responsive per l'immagine clienti */
@media (max-width: 768px) {
    .clients-image-container {
        height: 300px;
    }
    
    .clients-image {
        height: 100%;
    }
}

/* ✅ AGGIUNGI: Layout con altezza fissa basata sul contenuto */
.section-clients {
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 400px; /* ✅ ALTEZZA MINIMA */
}

.section-clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(30, 41, 59, 1) 0%, rgba(30, 41, 59, 1) 55%, rgba(30, 41, 59, 0.4) 65%, transparent 100%);
    z-index: 2; /* ✅ GRADIENTE SOPRA L'IMMAGINE */
    pointer-events: none;
}

.section-clients .col-lg-6:first-child {
    position: relative;
    z-index: 3; /* ✅ TESTO SOPRA TUTTO */
    display: flex;
    align-items: center;
    padding: 3rem;
}

.section-clients .col-lg-6:last-child {
    position: relative;
    z-index: 1; /* ✅ IMMAGINE SOTTO */
    padding: 0; /* ✅ RIMUOVI PADDING */
}

.clients-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* ✅ IMMAGINE SOTTO */
}

.clients-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-clients .section-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    height: auto;
    position: relative;
    z-index: 4; /* ✅ TESTO SOPRA TUTTO */
}

.section-clients .section-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-clients .section-title::after {
    background: white;
}

.section-clients .overview-paragraph {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.section-clients .clienti-list-item {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.section-clients .clienti-hover-icon {
    color: white;
}

.section-clients .section-icon {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .section-clients {
        min-height: auto;
        flex-direction: column;
    }
    
    .section-clients::before {
        background: linear-gradient(180deg, rgba(30, 41, 59, 1) 0%, rgba(30, 41, 59, 1) 55%, rgba(30, 41, 59, 0.4) 65%, transparent 100%);
    }
    
    .section-clients .col-lg-6:first-child {
        padding: 2rem;
        position: relative;
        z-index: 3;
    }
    
    .clients-image-container {
        position: relative;
        height: 300px;
        z-index: 1;
    }
}

/* ✅ AGGIUNGI: Layout per la sezione approach (invertita) */
.section-approach {
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 400px;
}

/* ✅ MODIFICA: Sezione approach con stesso colore blu */
.section-approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg, rgba(30, 41, 59, 1) 0%, rgba(30, 41, 59, 1) 55%, rgba(30, 41, 59, 0.4) 65%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.section-approach .col-lg-6:first-child {
    position: relative;
    z-index: 1;
    padding: 0;
}

.section-approach .col-lg-6:last-child {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 3rem;
}

.approach-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.approach-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-approach .section-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    height: auto;
    position: relative;
    z-index: 4;
}

.section-approach .section-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-approach .section-title::after {
    background: white;
}

.section-approach .overview-paragraph {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.section-approach .section-icon {
    color: white;
}

/* Responsive per approach */
@media (max-width: 768px) {
    .section-approach {
        min-height: auto;
        flex-direction: column-reverse;
    }
    
    .section-approach::before {
        background: linear-gradient(180deg, rgba(30, 41, 59, 1) 0%, rgba(30, 41, 59, 1) 55%, rgba(30, 41, 59, 0.4) 65%, transparent 100%);
    }
    
    .section-approach .col-lg-6:last-child {
        padding: 2rem;
        position: relative;
        z-index: 3;
    }
    
    .approach-image-container {
        position: relative;
        height: 300px;
        z-index: 1;
    }
}

/* ✅ AGGIUNGI: Stile per il bottone Contattaci */
.section-contact .btn-outline-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 2px solid #007bff;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.section-contact .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.section-contact .btn-outline-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    color: white;
}

.section-contact .btn-outline-primary:hover::before {
    left: 100%;
}

.section-contact .btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.section-contact .btn-outline-primary:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* ✅ AGGIUNGI: Stili per TiltedCard nella sezione contact */
.section-contact .tilted-card-figure {
    margin: 0 auto;
    max-width: 350px;
}

.section-contact .tilted-card-img {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.section-contact .tilted-card-figure:hover .tilted-card-img {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.section-contact .tilted-card-caption {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ✅ RESPONSIVE per TiltedCard */
@media (max-width: 768px) {
    .section-contact .tilted-card-figure {
        max-width: 280px;
    }
    
    .section-contact .tilted-card-img {
        border-radius: 15px;
    }
    
    .section-contact .tilted-card-caption {
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .section-contact .tilted-card-figure {
        max-width: 250px;
    }
}

/* ✅ AGGIUNGI: Stili per il diagramma flusso dati - SEPARATI */
.data-flow-diagram {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    position: relative;
}

.flow-circles-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.flow-labels-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 1rem;
}

.flow-labels-row span {
    flex: 1;
}

.flow-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border: 3px solid #4299e1;
    transition: all 0.4s ease;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(66, 153, 225, 0);
    }
}

.flow-circle svg {
    color: #4299e1;
    transition: all 0.3s ease;
}

.flow-start {
    border-color: #10b981;
}

.flow-start svg {
    color: #10b981;
}

.flow-service {
    border-color: #f59e0b;
}

.flow-service svg {
    color: #f59e0b;
}

.flow-end {
    border-color: #8b5cf6;
}

.flow-end svg {
    color: #8b5cf6;
}

.flow-connector {
    flex: 1;
    height: 4px;
    position: relative;
    max-width: 80px;
    margin: 0 0.5rem;
    opacity: 0;
    animation: fadeInConnector 1s ease forwards;
    display: flex;
    align-items: center;
}

.flow-connector.active {
    opacity: 1;
}

@keyframes fadeInConnector {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.flow-line {
    height: 100%;
    background: linear-gradient(90deg, #4299e1 0%, #60a5fa 100%);
    width: 0;
    position: relative;
    animation: drawLine 1.2s ease forwards;
}

@keyframes drawLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.flow-dot {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #4299e1;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(66, 153, 225, 0.8);
    animation: moveDot 1.2s ease forwards;
}

@keyframes moveDot {
    from {
        opacity: 0;
        transform: translateX(-80px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

.flow-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    display: block;
    white-space: nowrap;
}

/* Responsive per il diagramma */
@media (max-width: 768px) {
    .data-flow-diagram {
        padding: 1.5rem 0;
    }
    
    .flow-circle {
        width: 50px;
        height: 50px;
    }
    
    .flow-circle svg {
        width: 20px;
        height: 20px;
    }
    
    .flow-connector {
        max-width: 50px;
        margin: 0 0.3rem;
    }
    
    .flow-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .data-flow-diagram {
        padding: 1rem 0;
    }
    
    .flow-circle {
        width: 45px;
        height: 45px;
    }
    
    .flow-circle svg {
        width: 18px;
        height: 18px;
    }
    
    .flow-connector {
        max-width: 40px;
        margin: 0 0.2rem;
    }
    
    .flow-label {
        font-size: 0.7rem;
    }
}.tilted-card-figure {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .tilted-card-mobile-alert {
    position: absolute;
    top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    display: none;
  }
  
  @media (max-width: 640px) {
    .tilted-card-mobile-alert {
      display: block;
    }
    .tilted-card-caption {
      display: none;
    }
  }
  
  .tilted-card-inner {
    position: relative;
    transform-style: preserve-3d;
  }
  
  .tilted-card-img {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 15px;
    will-change: transform;
    transform: translateZ(0);
  }
  
  .tilted-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    will-change: transform;
    transform: translateZ(30px);
  }
  
  .tilted-card-caption {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 4px;
    background-color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    color: #2d2d2d;
    opacity: 0;
    z-index: 3;
  }
  .modular-solutions-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.modular-solutions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="1"/></g></svg>');
    pointer-events: none;
}

.section-title {
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 2px;
}

.section-subtitle {
    max-width: 800px;
}

.feature-item {
    position: relative;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4299e1, transparent);
}

.feature-icon {
    font-size: 2.2rem;
    color: #4299e1;
    flex-shrink: 0;
}

.feature-title {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1rem 0;
}

.feature-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .feature-item {
        padding: 1.5rem;
    }
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.features-list-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.5rem 1rem;
    transition: box-shadow 0.2s;
}
.features-list-item:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.features-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.features-table td {
    vertical-align: middle;
    border-top: none;
    padding: 1.2rem 1rem;
}
.features-table tr:not(:last-child) td {
    border-bottom: 1px solid #f0f0f0;
}

.feature-horizontal-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.feature-horizontal-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.feature-vertical-card {
    background: #1e293b;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #f1f5f9;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Effetto shine */
.feature-vertical-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.feature-vertical-card:hover::before {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.feature-vertical-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    border-color: #ffd700;
}

.feature-icon {
    font-size: 3rem;
    color: #60a5fa !important;
    transition: all 0.3s ease;
    position: relative;
}

.feature-vertical-card:hover .feature-icon {
    transform: rotateY(360deg);
    color: #ffd700 !important;
}

.feature-title {
    color: #f1f5f9;
    margin-top: 1rem;
}

.feature-description {
    color: #cbd5e1;
}

/* Animazione fade-in quando le card appaiono */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-vertical-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation per le card successive */
.feature-vertical-card:nth-child(1) { animation-delay: 0.1s; }
.feature-vertical-card:nth-child(2) { animation-delay: 0.2s; }
.feature-vertical-card:nth-child(3) { animation-delay: 0.3s; }
.feature-vertical-card:nth-child(4) { animation-delay: 0.4s; }
.feature-vertical-card:nth-child(5) { animation-delay: 0.5s; }
.feature-vertical-card:nth-child(6) { animation-delay: 0.6s; }

.modular-solutions-faq-link {
    color: #2563eb;
    text-decoration: underline;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.modular-solutions-faq-link:hover {
    color: #1d4ed8;
}

/* Backdrop scuro */
.modular-solutions-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: overlayFadeIn 0.2s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Pannello contenuto */
.modular-solutions-overlay-content {
    background: #1e293b;
    color: #f1f5f9;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    max-width: 960px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: overlayContentIn 0.25s ease;
}

@keyframes overlayContentIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modular-solutions-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.modular-solutions-overlay-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.1);
}

.modular-solutions-overlay-title {
    color: #f1f5f9;
    padding-right: 2rem;
}

.modular-solutions-overlay-description {
    color: #cbd5e1;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

/* Hint "Clicca per dettagli" sulla card */
.feature-card-click-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.feature-vertical-card:hover .feature-card-click-hint {
    color: #ffd700;
}

.feature-card-click-hint-text {
    white-space: nowrap;
}.container {
    background: transparent;
}

.home-container {
    min-height: 100vh;
    width: 100%;
    /* ✅ AGGIUNGI: Background semplice */
    background: linear-gradient(135deg, #f5f7fa 0%, #dee3eb 100%);
}
.chisiamo-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* Hero Image Section */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 50vh; /* Riduce l'altezza a metà dello schermo */
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Mostra il centro dell'immagine */
  display: block;
  margin: 0;
  padding: 0;
}

/* Overlay scuro sopra l'immagine */
.hero-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Overlay scuro leggero */
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center; /* Centra verticalmente */
  justify-content: center; /* Centra orizzontalmente */
  text-align: center;
  z-index: 2;
}

.hero-title {
  color: white;
  font-size: 4rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 3px;
  margin: 0;
  text-transform: uppercase;
}

/* Stili per il titolo della sezione */
.section-title {
  position: relative;
  display: inline-block;
  color: #2c3e50;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #0d6efd;
  border-radius: 2px;
}

.chisiamo-content {
  margin-bottom: 3rem;
}

.text-justify {
  text-align: justify;
}

.perche-autodigit-section {
  width: 100%;
}

.perche-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 1px;
}

.perche-feature-row {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.perche-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 220px;
  min-width: 180px;
  text-align: center;
  padding: 0.5rem 0.5rem 0.8rem 0.5rem;
}

.perche-icon {
  font-size: 2.3rem;
  color: #4299e1;
  margin-bottom: 0.5rem;
}

.perche-feature h4 {
  font-size: 1.08rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.2rem;
}

.perche-feature p {
  color: #4a5568;
  font-size: 0.50rem;
  margin-bottom: 0;
}

.autodigit-pillole {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.pillola {
  display: inline-block;
  padding: 0.45em 1.2em;
  border-radius: 2em;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: #4299e1;
  box-shadow: 0 2px 8px rgba(66,153,225,0.08);
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.pillola-blu { background: #4299e1; }
.pillola-verde { background: #10b981; }
.pillola-azzurra { background: #38bdf8; }
.pillola-gialla { background: #fbbf24; color: #2c3e50; }
.pillola-viola { background: #a78bfa; }

/* Mission e Vision Sections */
.mission-vision-section {
  margin: 5rem 0; /* Aumentato per più respiro */
}

.mission-image-container,
.vision-image-container {
  width: 100%;
  height: 300px; /* Leggermente aumentato */
  border-radius: 20px; /* Più arrotondato per un look più moderno */
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-image-container:hover,
.vision-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.mission-image-container::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #4299e1, #38bdf8);
  border-radius: 22px;
  z-index: -1;
}

.vision-image-container::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #10b981, #38bdf8);
  border-radius: 22px;
  z-index: -1;
}

.mission-image,
.vision-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mission-image {
  object-position: center top;
}

.mission-image:hover,
.vision-image:hover {
  transform: scale(1.06);
}

/* Testo Mission e Vision - layout più ordinato */
.mission-text,
.vision-text {
  padding: 2rem 2.5rem; /* Più padding per respiro */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mission-title,
.vision-title {
  color: #2c3e50;
  font-size: 2.3rem; /* Leggermente più grande */
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  line-height: 1.2;
}

.mission-title::after,
.vision-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px; /* Leggermente più lungo */
  height: 4px; /* Leggermente più spesso */
  background: linear-gradient(90deg, #0d6efd, #38bdf8);
  border-radius: 3px;
}

.mission-description,
.vision-description {
  color: #4a5568;
  font-size: 1.12rem; /* Leggermente più grande per leggibilità */
  line-height: 1.9; /* Più spaziatura tra le righe */
  margin: 0;
  text-align: justify;
}

/* Responsive per Mission e Vision */
@media (max-width: 768px) {
  .mission-vision-section {
    margin: 3rem 0;
  }
  
  .mission-image-container,
  .vision-image-container {
    height: 240px;
    margin-bottom: 2rem;
    border-radius: 18px;
  }
  
  .mission-image-container::before,
  .vision-image-container::before {
    border-radius: 20px;
  }
  
  .mission-title,
  .vision-title {
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
  }
  
  .mission-text,
  .vision-text {
    padding: 1.5rem 1.8rem;
  }
  
  .mission-description,
  .vision-description {
    font-size: 1.05rem;
    line-height: 1.8;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .chisiamo-section {
    padding: 0;
  }
}

@media (max-width: 900px) {
  .perche-feature-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .perche-feature {
    max-width: 100%;
  }
}

/* Stile per il TextType del titolo hero */
.hero-title .text-type__content {
  font-size: 4rem; /* Stessa dimensione del titolo originale */
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-title .text-type__content {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
}

/* Stile per la sezione delle parole rotanti */
.rotating-words-section {
  margin-top: 2rem;
}

.rotating-intro-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rotating-main {
  background: #0d6efd;
  color: white;
  padding: 0.3rem 0.8rem; /* Riduci il padding */
  border-radius: 8px;
  font-weight: 700;
  font-size: inherit; /* Usa la dimensione del parent */
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
  display: inline-block; /* Importante: mantieni inline */
  margin: 0 0.2rem; /* Piccolo margine laterale */
}

.rotating-element {
  font-size: inherit;
  font-weight: 700;
  color: inherit;
  transform-origin: bottom;
  display: inline-block;
}

/* Stili per le card "Perché scegliere Autodigit" */
.perche-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  height: 100%;
  text-align: center;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.perche-card:hover {
  box-shadow: 
    0 15px 35px rgba(13, 110, 253, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: #0d6efd;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

/* Icona wrapper - Centrato normalmente, si sposta nell'angolo in hover */
.perche-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #0d6efd 0%, #38bdf8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 8px 16px rgba(13, 110, 253, 0.3),
    0 2px 4px rgba(13, 110, 253, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  transform-origin: center center;
}

/* Icona wrapper in hover - si sposta nell'angolo destro in alto */
.perche-card:hover .perche-icon-wrapper {
  /* Posizione finale: angolo destro alto */
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  margin: 0;
  /* Scala per ridurre dimensioni (50px / 80px = 0.625) */
  transform: scale(0.625);
}

.perche-icon-wrapper::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 30%;
  height: 30%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  transform-origin: center center;
}

.perche-icon {
  font-size: 2.2rem;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  z-index: 1;
  position: relative;
  display: block;
  margin: 0 auto;
  transform-origin: center center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Titolo - normale */
.perche-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  position: relative;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Titolo in hover - spostato a sinistra dell'icona, in alto */
.perche-card:hover .perche-card-title {
  font-size: 1rem;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem; /* A sinistra invece di right */
  margin-bottom: 0;
  margin-right: 0;
  text-align: left; /* Allineamento a sinistra */
  transform: translateX(0);
}

/* Descrizione breve - normale (visibile) */
.perche-card-description {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Descrizione breve in hover (nascosta con opacity) */
.perche-card:hover .perche-card-description {
  opacity: 0;
  transform: translateY(-10px);
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Descrizione estesa - normale (nascosta) */
.perche-card-extended {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: left;
  padding-right: 0; /* Non serve più perché il testo va in basso */
}

/* Descrizione estesa in hover (visibile) - posizionata in basso */
.perche-card:hover .perche-card-extended {
  opacity: 1;
  height: auto;
  padding-top: 4.5rem; /* Spazio per titolo in alto */
  text-align: left;
  transform: translateY(0);
  position: relative;
  /* Assicurati che non vada sotto gli elementi assoluti */
  margin-top: auto;
}

/* Responsive per le card */
@media (max-width: 576px) {
  .perche-card {
    padding: 1px;
  }
  
  .perche-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 1.2rem;
  }
  
  .perche-card:hover .perche-icon-wrapper {
    transform: scale(0.643); /* 45/70 */
    right: 1rem;
    top: 1rem;
  }
  
  .perche-icon {
    font-size: 1.8rem;
  }
  
  .perche-card-title {
    font-size: 1.2rem;
  }
  
  .perche-card:hover .perche-card-title {
    font-size: 0.9rem;
    left: 1rem;
    top: 1rem;
  }
  
  .perche-card-description {
    font-size: 0.9rem;
  }
  
  .perche-card-extended {
    font-size: 0.9rem;
    padding-right: 0;
  }
  
  .perche-card:hover .perche-card-extended {
    padding-top: 3.5rem; /* Meno spazio su mobile */
    padding-right: 0;
  }
}

/* Stile per il folder delle pillole */
.pillole-folder-container {
  margin: 3rem 0;
}

.pillole-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.pillole-folder {
  margin: 0 auto;
}

/* Stile per le icone tecnologiche nel folder */
.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
}

.tech-icon svg {
  font-size: 2.5rem;
}

.tech-icon svg:first-child {
  color: #61dafb; /* React - blu */
}

.tech-icon svg:nth-child(2) {
  color: #777bb4; /* PHP - viola */
}

.tech-icon svg:nth-child(3) {
  color: #f7df1e; /* JavaScript - giallo */
}

/* Stile per le pillole dentro il folder */
.pillole-folder .paper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.pillole-folder .pillola {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  margin: 0.2rem;
}.text-type {
  display: inline-block;
  white-space: pre-wrap;
}

.text-type__content {
  font-size: 1.2rem;
  font-weight: 500;
}

.text-type__cursor {
  margin-left: 0.25rem;
  display: inline-block;
  opacity: 1;
  font-weight: bold;
  color: #00ff00; /* Colore verde per il cursore */
}

.text-type__cursor--hidden {
  display: none;
}

/* Stili aggiuntivi per personalizzazione */
.text-type--large .text-type__content {
  font-size: 2rem;
}

.text-type--small .text-type__content {
  font-size: 0.9rem;
}

.text-type--bold .text-type__content {
  font-weight: bold;
}
.text-rotate {
    display: inline-flex;
    flex-wrap: wrap;
    white-space: pre-wrap;
    position: relative;
}

.text-rotate-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-rotate-word {
    display: inline-flex;
}

.text-rotate-lines {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.text-rotate-element {
    display: inline-block;
}

.text-rotate-space {
    white-space: pre;
}

.rotating-main {
  background: #0d6efd;
  color: white;
  padding: 0.3rem 0.8rem; /* Riduci il padding */
  border-radius: 8px;
  font-weight: 700;
  font-size: inherit; /* Usa la dimensione del parent */
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
  display: inline-block; /* Importante: mantieni inline */
  margin: 0 0.2rem; /* Piccolo margine laterale */
}

.rotating-element {
  font-size: inherit;
  font-weight: 700;
  color: inherit;
  transform-origin: bottom;
  display: inline-block;
}:root {
    --folder-color: #70a1ff;
    --folder-back-color: #4785ff;
    --paper-1: #e6e6e6;
    --paper-2: #f2f2f2;
    --paper-3: #ffffff;
  }
  
  .folder {
    transition: all 0.2s ease-in;
    cursor: pointer;
  }
  
  .folder:not(.folder--click):hover {
    transform: translateY(-8px);
  }
  
  .folder:not(.folder--click):hover .paper {
    transform: translate(-50%, 0%);
  }
  
  .folder:not(.folder--click):hover .folder__front {
    transform: skew(15deg) scaleY(0.6);
  }
  
  .folder:not(.folder--click):hover .right {
    transform: skew(-15deg) scaleY(0.6);
  }
  
  .folder.open {
    transform: translateY(-8px);
  }
  
  .folder.open .paper:nth-child(1) {
    transform: translate(-120%, -70%) rotateZ(-15deg);
  }
  
  .folder.open .paper:nth-child(1):hover {
    transform: translate(-120%, -70%) rotateZ(-15deg) scale(1.1);
  }
  
  .folder.open .paper:nth-child(2) {
    transform: translate(10%, -70%) rotateZ(15deg);
    height: 80%;
  }
  
  .folder.open .paper:nth-child(2):hover {
    transform: translate(10%, -70%) rotateZ(15deg) scale(1.1);
  }
  
  .folder.open .paper:nth-child(3) {
    transform: translate(-50%, -100%) rotateZ(5deg);
    height: 80%;
  }
  
  .folder.open .paper:nth-child(3):hover {
    transform: translate(-50%, -100%) rotateZ(5deg) scale(1.1);
  }
  
  .folder.open .folder__front {
    transform: skew(15deg) scaleY(0.6);
  }
  
  .folder.open .right {
    transform: skew(-15deg) scaleY(0.6);
  }
  
  .folder__back {
    position: relative;
    width: 100px;
    height: 80px;
    background: var(--folder-back-color);
    border-radius: 0px 10px 10px 10px;
  }
  
  .folder__back::after {
    position: absolute;
    z-index: 0;
    bottom: 98%;
    left: 0;
    content: '';
    width: 30px;
    height: 10px;
    background: var(--folder-back-color);
    border-radius: 5px 5px 0 0;
  }
  
  .paper {
    position: absolute;
    z-index: 2;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 10%);
    width: 70%;
    height: 80%;
    background: var(--paper-1);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
  }
  
  .paper:nth-child(2) {
    background: var(--paper-2);
    width: 80%;
    height: 70%;
  }
  
  .paper:nth-child(3) {
    background: var(--paper-3);
    width: 90%;
    height: 60%;
  }
  
  .folder__front {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;
    background: var(--folder-color);
    border-radius: 5px 10px 10px 10px;
    transform-origin: bottom;
    transition: all 0.3s ease-in-out;
  }
  /* ✅ AGGIUNGI: Background alla pagina Area Clienti */
.area-clienti-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Stili per il contenuto testuale */
.text-content {
    padding: 0 1.5rem;
    margin-top: 2rem;
}

.text-content h4 {
    font-size: 1.6rem; /* Leggermente più grande */
    margin-bottom: 1.5rem;
    color: #2c3e50; /* Colore più scuro */
    font-weight: 600;
}

.text-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7; /* Migliore leggibilità */
    font-size: 1.1rem;
    color: #4a5568; /* Colore più moderno */
}

.text-content p:last-child {
    margin-bottom: 0;
}

.text-content ul {
    margin-bottom: 1.5rem;
}

.text-content ul li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Stili per il form */
.form-card {
    background: rgba(255, 255, 255, 0.95); /* Sfondo bianco semi-trasparente */
    border-radius: 20px; /* Più arrotondato */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); /* Ombra più moderna */
    padding: 2.5rem; /* Più padding */
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1); /* Bordo sottile brand */
    backdrop-filter: blur(10px); /* Effetto glassmorphism */
}

.form-card:hover {
    transform: translateY(-3px); /* Movimento più sottile */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.form-card h5 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.form-card h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #007bff; /* Colore brand */
    border-radius: 1px;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 12px; /* Più arrotondato */
    border: 2px solid #e2e8f0; /* Bordo più spesso */
    transition: all 0.3s ease;
    padding: 0.75rem 1rem; /* Padding più equilibrato */
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9); /* Sfondo bianco semi-trasparente */
}

.form-control:focus {
    border-color: #007bff; /* Colore brand */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Contatore caratteri */
.text-muted.small {
    color: #6c757d !important;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Stili per il bottone */
.submit-button {
    border-radius: 12px; /* Più arrotondato */
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem; /* Padding più equilibrato */
    position: relative;
    overflow: hidden;
    background: #007bff; /* Colore brand */
    border: 2px solid #007bff;
    color: white;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #0056b3; /* Colore brand più scuro */
    border-color: #0056b3;
    transform: translateY(-2px); /* Leggero sollevamento */
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Stili per il titolo della sezione */
.section-title {
    position: relative;
    display: inline-block;
    color: #2c3e50;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Più largo */
    height: 3px;
    background: #007bff; /* Colore brand */
    border-radius: 2px;
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive migliorato */
@media (max-width: 768px) {
    .text-content {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }
    
    .text-content h4 {
        font-size: 1.4rem;
    }
    
    .text-content p {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .form-card h5 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .form-card {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    .submit-button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* Toast notification */
.Toaster {
    z-index: 9999;
}

/* Miglioramenti per il captcha */
.mb-4 .captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.mb-4 .captcha-container p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ========== CONTATTI – BANNER + INTRO 6/6 + FORM ORIZZONTALE ========== */

/* Banner blu sopra */
.contatti-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #fff;
    padding: 2.5rem 0;
}
.contatti-banner-inner {
    text-align: center;
}
.contatti-banner-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.contatti-banner-lead {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}
.contatti-banner-line {
    width: 64px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* Corpo pagina */
.contatti-body {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background: #f5f7fa;
}

/* Riga intro: testi a sinistra, immagine a destra (col-6 col-6) */
.contatti-intro-row {
    margin-bottom: 2.5rem;
}
.contatti-intro-text-col {
    padding-right: 1.5rem;
}
.contatti-intro-img-col {
    padding-left: 0;
}
.contatti-intro-img-wrap {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.contatti-intro-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 1rem;
}
@media (max-width: 767px) {
    .contatti-intro-img-wrap { min-height: 220px; }
    .contatti-intro-text-col { padding-right: 0; margin-bottom: 1rem; }
}

/* Form a tutta larghezza, campi in due colonne */
.contatti-form-row {
    margin-bottom: 0;
}
.contatti-form-wide {
    width: 100%;
}
.contatti-fields-row {
    margin-bottom: 0;
}
.contatti-fields-left .mb-4,
.contatti-fields-right .mb-4 {
    margin-bottom: 1.25rem !important;
}
.contatti-fields-left {
    padding-right: 1rem;
}
.contatti-fields-right {
    padding-left: 1rem;
}
@media (max-width: 767px) {
    .contatti-fields-left,
    .contatti-fields-right {
        padding-left: 0;
        padding-right: 0;
    }
}
.contatti-submit-wrap {
    margin-top: 0.5rem;
}
.contatti-submit-wrap .submit-button {
    min-width: 200px;
}.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.icon-container {
  display: inline-flex;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover .icon-container {
  transform: translateY(-10px) scale(1.1);
}

.social-icon:hover .icon-label {
  opacity: 1;
  transform: translateY(5px);
}

.icon-label {
  margin-top: 12px;
  color: #2c3e50 !important; /* Testo nero */
  font-weight: 500;
  opacity: 0.9;
  transition: all 0.3s ease;
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.contact-detail {
  color: #2c3e50 !important; /* Testo nero */
  font-weight: 400;
  transition: all 0.3s ease;
  margin-top: 0.2rem;
  line-height: 1.4;
  opacity: 0.8;
  display: block;
  font-size: 0.9rem;
}

.social-icon:hover .contact-detail {
  opacity: 1 !important;
}

.social-icon.instagram:hover .icon-container {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.6);
}

.social-icon.discord:hover .icon-container {
  background: #7289da;
  box-shadow: 0 0 20px rgba(114, 137, 218, 0.6);
}

.social-icon.github:hover .icon-container {
  background: #333;
  box-shadow: 0 0 20px rgba(51, 51, 51, 0.6);
}

.social-icon.linkedin:hover .icon-container {
  background: #0077b5;
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.6);
}

.social-icon:hover svg {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-5px) rotate(-5deg); }
  40% { transform: translateX(5px) rotate(5deg); }
  60% { transform: translateX(-5px) rotate(-5deg); }
  80% { transform: translateX(5px) rotate(5deg); }
}

.icon-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-icon:hover .icon-container::before {
  opacity: 1;
}
.contattaci-section {
    position: relative;
    width: 100%;
    margin-top: 3rem;
}

.contattaci-card {
    position: relative;
    padding: 3rem; /* Più padding */
    border-radius: 20px; /* Più arrotondato */
    background: rgba(255, 255, 255, 0.95); /* Sfondo bianco semi-trasparente */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); /* Ombra più moderna */
    border: 1px solid rgba(0, 123, 255, 0.1); /* Bordo sottile brand */
    backdrop-filter: blur(10px); /* Effetto glassmorphism */
}

.contattaci-info {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.contatto-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem; /* Più padding */
    border-radius: 16px; /* Più arrotondato */
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.7); /* Sfondo bianco semi-trasparente */
}

.contatto-item:hover {
    background: rgba(0, 123, 255, 0.05); /* Colore brand più leggero */
    border-color: rgba(0, 123, 255, 0.2);
    transform: translateX(8px); /* Movimento più pronunciato */
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.1);
}

.contatto-icon {
    font-size: 2rem; /* Più grande */
    color: #007bff; /* Colore brand */
    flex-shrink: 0;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.contatto-item:hover .contatto-icon {
    color: #0056b3; /* Colore brand più scuro */
    transform: scale(1.1);
}

.contatto-details h3 {
    color: #2c3e50;
    font-size: 1.3rem; /* Leggermente più grande */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contatto-details p {
    color: #4a5568;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500; /* Leggermente più grassetto */
}

.contattaci-description {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7; /* Migliore leggibilità */
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 123, 255, 0.1); /* Bordo brand */
}

.section-title {
    color: #2c3e50;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* Più largo */
    height: 3px;
    background: #007bff; /* Colore brand */
    border-radius: 2px;
}

.contattaci-image-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.contattaci-image {
    max-width: 90%; /* Leggermente più grande */
    width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1)); /* Ombra più pronunciata */
    transition: all 0.3s ease;
}

.contattaci-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

/* Stile per il wrapper di SocialConnect */
.social-connect-wrapper {
  margin-top: 2rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Personalizza il SocialConnect per adattarlo al design */
.social-connect-wrapper .min-h-screen {
  min-height: auto !important;
  padding: 3rem 2rem !important;
  background: white !important; /* Sfondo bianco */
}

.social-connect-wrapper h1 {
  font-size: 2.5rem !important;
  margin-bottom: 2rem !important;
  color: #2c3e50 !important; /* Testo scuro per contrasto */
}

.social-connect-wrapper p {
  font-size: 1.1rem !important;
  margin-bottom: 2rem !important;
  color: #4a5568 !important; /* Testo grigio scuro */
}

/* Modifica il container interno per sfondo bianco */
.social-connect-wrapper .rounded-3xl {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Layout a griglia per allineamento perfetto */
.social-connect-wrapper .relative .flex {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 1rem 1.5rem !important;
  align-items: center !important;
  justify-items: center !important; /* Centra tutto */
  justify-content: center !important; /* Centra il contenuto */
  max-width: 400px !important; /* Limita la larghezza */
  margin: 0 auto !important; /* Centra il container */
}

/* Layout delle singole icone */
.social-connect-wrapper .social-icon {
  display: contents !important; /* Permette al contenuto di partecipare alla griglia */
}

.social-connect-wrapper .icon-container {
  width: 50px !important;
  height: 50px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  background: rgba(13, 110, 253, 0.1) !important; /* Sfondo blu chiaro */
  border: 1px solid rgba(13, 110, 253, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.social-connect-wrapper .icon-label {
  margin-top: 0 !important;
  margin-left: 0 !important;
  font-size: 1rem !important;
  white-space: nowrap !important;
  opacity: 0.9 !important;
  color: #2c3e50 !important; /* Testo scuro */
  align-self: center !important;
  text-align: center !important; /* Centra il testo */
}

/* Personalizza le icone social per il brand Autodigit */
.social-connect-wrapper .social-icon.instagram:hover .icon-container {
  background: #0d6efd !important;
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.6) !important;
}

.social-connect-wrapper .social-icon.discord:hover .icon-container {
  background: #0d6efd !important;
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.6) !important;
}

.social-connect-wrapper .social-icon.github:hover .icon-container {
  background: #0d6efd !important;
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.6) !important;
}

.social-connect-wrapper .social-icon.linkedin:hover .icon-container {
  background: #0d6efd !important;
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.6) !important;
}

/* Cambia il colore delle icone SVG */
.social-connect-wrapper svg {
  color: #0d6efd !important;
}

.social-connect-wrapper .social-icon:hover svg {
  color: white !important;
}

@media (max-width: 768px) {
    .contattaci-section {
        margin-top: 2rem;
    }
    
    .contattaci-card {
        padding: 2rem;
    }

    .contatto-item {
        padding: 1.5rem;
        gap: 1rem;
    }

    .contatto-icon {
        font-size: 1.8rem;
    }

    .contatto-details h3 {
        font-size: 1.2rem;
    }

    .contatto-details p {
        font-size: 1rem;
    }

    .contattaci-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contattaci-image-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .contattaci-image {
        max-width: 85%;
        width: 300px;
    }

    .social-connect-wrapper .min-h-screen {
      padding: 2rem 1rem !important;
    }
    
    .social-connect-wrapper h1 {
      font-size: 2rem !important;
    }
    
    .social-connect-wrapper p {
      font-size: 1rem !important;
    }
    
    .social-connect-wrapper .icon-container {
      width: 45px !important;
      height: 45px !important;
    }
}

@media (max-width: 576px) {
    .contattaci-card {
        padding: 1.5rem;
    }
    
    .contatto-item {
        padding: 1.2rem;
    }
    
    .contatto-icon {
        font-size: 1.6rem;
    }
}
.recaptcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.recaptcha-widget {
    transform: scale(1);
    transform-origin: center;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .recaptcha-container {
        padding: 0.5rem;
    }
    
    .recaptcha-widget {
        transform: scale(0.9);
    }
}

/* Per schermi molto piccoli */
@media (max-width: 480px) {
    .recaptcha-widget {
        transform: scale(0.8);
    }
}
