/* Importa un font moderno */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@500;700&display=swap');



/*-----------------------------------------------------NAVBAR*/
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    font-family: 'Raleway', sans-serif;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2d2d2d !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #0d6efd !important;
    /* Colore di accento, puoi personalizzarlo */
    transform: scale(1.1);

    transition: transform 0.4s ease;
}

.navbar img {
    border-radius: 50%;
    border: 2px solid #eee;
    transition: transform 0.4s ease;
}

.navbar img:hover {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    color: #2d2d2d !important;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0d6efd !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;
}


/*-----------------------------------------------------HOME*/
.hero-section {
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url('/static/foto2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* Centra verticalmente */
    justify-content: center;
    /* Centra orizzontalmente */
    padding: 0 15px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #e0e0e0;
}


.step-box {
    background-color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step-box i {
    font-size: 3rem;
}

.step-box h5 {
    font-weight: 700;
    margin-top: 1rem;
}

.step-box p {
    color: #666;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .step-box {
        padding: 2rem;
    }
}

.cta-section .btn-primary {
    transition: transform 0.3s ease;
}

.cta-section .btn-primary:hover {
    transform: scale(1.1);
}

.hero-section .btn-primary {
    transition: transform 0.3s ease;
}

.hero-section .btn-primary:hover {
    transform: scale(1.1);
}


.about-section {
    background-color: #f9f9f9;
    font-family: 'Raleway', sans-serif;
}

.section-title {
    font-weight: 700;
    font-size: 3rem;
    color: #2d2d2d;
}

.lead {
    font-weight: 500;
    font-size: 1.125rem;
}

.footer-img {
    border-radius: 12px;
}

/*-----------------------------------------------------FOOTER*/

.footer-section {
    background-color: #2d2d2d;
    color: #e0e0e0;
    font-family: 'Raleway', sans-serif;
}

.footer-section h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section .list-unstyled {
    padding-left: 0;
}

.footer-section .list-unstyled li a {
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.footer-section .list-unstyled li a:hover {
    color: #0d6efd;
}

.footer-section hr {
    border-color: #444;
}

.footer-section .text-muted {
    font-size: 0.875rem;
}

/*-----------------------------------------------------COME-OPERIAMO*/

.custom-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* ombra più profonda */
    transition: box-shadow 0.3s ease-in-out;
}

.custom-shadow:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    /* effetto al passaggio del mouse */
}


.gray {
    color: #6c757d;
}

.gray:hover {
    color: #6c757d;
}

/*-----------------------------------------------------LANGUAGE SELECTOR*/

.lang-selector-wrapper {
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
}

.lang-selector-btn {
    background: transparent;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    padding: 7px 18px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d2d2d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.lang-selector-btn:hover {
    border-color: #555;
    color: #111;
}

.lang-selector-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.lang-selector-btn .globe-icon {
    font-size: 1.25rem;
    line-height: 1;
    color: #555;
}

.lang-selector-btn .dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 210px;
    z-index: 1002;
}

.lang-dropdown.show {
    display: block;
    animation: langFadeIn 0.2s ease;
}

@keyframes langFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2d2d2d;
    letter-spacing: 0.3px;
    transition: background 0.15s ease;
    user-select: none;
}

.lang-option:first-child {
    border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 12px 12px;
}

.lang-option:hover {
    background: #f0f4ff;
}

.lang-option.active {
    color: #0d6efd;
}

.lang-option.active::after {
    content: "\2713";
    margin-left: auto;
    color: #0d6efd;
    font-size: 1.1rem;
    font-weight: 700;
}

.lang-option .lang-flag {
    font-size: 1.35rem;
    line-height: 1;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}
/* Bandiera corrente – nascosta su desktop */
.current-lang-flag {
    display: none !important;
}

/* Responsive – schermi piccoli */
@media (max-width: 576px) {
    /* Su mobile: mostra solo la bandiera */
    .lang-selector-btn .globe-icon,
    .lang-selector-btn #current-lang-name,
    .lang-selector-btn .dropdown-arrow {
        display: none;
    }

    .lang-selector-btn .current-lang-flag {
        display: inline-block !important;
        font-size: 1.5rem;
        line-height: 1;
        border-radius: 3px;
        box-shadow: 0 0 2px rgba(0,0,0,0.25);
    }

    .lang-selector-btn {
        padding: 5px 8px;
        border: none;
        background: transparent;
    }

    .lang-dropdown {
        min-width: 180px;
        left: auto;
        right: 0;
        transform: none;
    }

    .lang-option {
        padding: 9px 16px;
        font-size: 0.82rem;
    }
}