/* contatti.css */

.page-banner {
    background-color: var(--primary-color);
    padding: 100px 0 50px;
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-banner .underline {
    height: 4px;
    width: 80px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title .underline {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Form di contatto */
.contact-form-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info ul li i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--secondary-color);
}

.contact-info ul li div {
    flex: 1;
}

.contact-info ul li p {
    margin: 0 0 5px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a i {
    color: var(--white);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1.5;
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group button {
    padding: 12px 30px;
    font-size: 1rem;
}

/* Sezione uffici */
.offices-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.offices-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.office-card {
    flex: 1;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.office-card:hover {
    transform: translateY(-10px);
}

.office-image {
    height: 250px;
    overflow: hidden;
}

.office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.office-card:hover .office-image img {
    transform: scale(1.05);
}

.office-info {
    padding: 25px;
}

.office-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.office-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.office-info p {
    margin: 0 0 8px;
    color: #666;
    font-size: 0.95rem;
}

/* Sezione mappa */
.map-section {
    height: 600px;
    width: 100%;
    margin-bottom: 160px;
}

.map-section iframe {
    display: block;
}

/* Modal di successo */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.4s ease;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

.modal-body {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.modal-body h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-body p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.modal-close-btn {
    padding: 10px 25px;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Media queries */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    .offices-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 80px 0 40px;
    }

    .page-banner h1 {
        font-size: 2.5rem;
    }

    .contact-form-section,
    .offices-section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .contact-info {
        padding: 30px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .office-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 25px;
    }

    .office-info h3 {
        font-size: 1.3rem;
    }

    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

/* email-validation.css */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00756A;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    background-color: #ffeeee;
    border-left: 4px solid #ff0000;
    color: #333;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.email-suggestion {
    font-size: 14px;
    color: #333;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
}

.suggestion-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    background-color: #76C043;
    color: #FFFFFF;
    border: 2px solid #76C043;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.suggestion-button:hover {
    background-color: transparent;
    color: #76C043;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-suggestion {
    animation: fadeIn 0.3s ease-in-out;
}