/**
 * Contacts Page Styles
 * Tour in Barca Theme
 */

/* Reset spacing for contact page */
body.page-template-page-contatti {
    background: linear-gradient(135deg, #4a7bc8 0%, #5a8fd3 100%);
    min-height: 100vh;
}

body.page-template-page-contatti .site-content {
    padding: 0;
    max-width: 100%;
}

.contact-page-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.page-container-contacts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Breadcrumb */
.breadcrumb-contacts {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.breadcrumb-contacts a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-contacts a:hover {
    color: white;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

/* Page Wrapper */
.page-wrapper-contacts {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin-bottom: 0;
}

/* Page Header */
.page-header-contacts {
    padding: 50px 40px;
    background: linear-gradient(135deg, #3068b3 0%, #4a7bc8 100%);
    text-align: center;
    color: white;
}

.page-header-contacts .page-header-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.page-header-contacts .page-header-subtitle {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: white;
}

/* Contacts Content */
.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px 40px;
}

.contact-info {
    padding-right: 20px;
}

.contact-section {
    margin-bottom: 40px;
}

.contact-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(48, 104, 179, 0.2);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(48, 104, 179, 0.08);
    transform: translateX(5px);
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    margin-top: 0;
}

.contact-details p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 4px 0;
}

.contact-details a {
    color: #3068b3;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: #f79448;
}

.contact-details strong {
    color: #333;
    font-weight: 700;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    height: fit-content;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    margin-top: 0;
    text-align: center;
}

.form-group-contact {
    margin-bottom: 25px;
}

.form-group-contact label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group-contact input,
.form-group-contact textarea,
.form-group-contact select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(224, 224, 224, 0.6);
    border-radius: 10px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.form-group-contact input:focus,
.form-group-contact textarea:focus,
.form-group-contact select:focus {
    outline: none;
    border-color: #3068b3;
    box-shadow: 0 0 0 4px rgba(48, 104, 179, 0.15);
    background: white;
}

.form-group-contact textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.submit-btn-contact {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #f79448, #e8843f);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 6px 20px rgba(247, 148, 72, 0.3);
}

.submit-btn-contact:hover {
    background: linear-gradient(135deg, #e8843f, #d7743a);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(247, 148, 72, 0.5);
}

.submit-btn-contact:active {
    transform: translateY(-1px);
}

/* Maps Section */
.maps-section-contacts {
    padding: 50px 0;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 20px;
    margin-top: 30px;
}

.maps-container-contacts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.maps-title {
    font-size: 32px;
    font-weight: 800;
    color: #3068b3;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 0;
}

.maps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.map-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.map-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #3068b3 0%, #4a7bc8 100%);
    color: white;
    text-align: center;
}

.map-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
    color: white;
}

.map-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    color: white;
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    line-height: 1.6;
}

.map-placeholder.sardegna-map {
    background: linear-gradient(135deg, #f79448 0%, #ff6b35 100%);
}

/* Success Message */
.contact-success-message {
    display: none;
    padding: 20px 25px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.contact-success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .maps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-container-contacts {
        padding: 20px 15px;
    }

    .contacts-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .maps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row-contact {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-header-contacts {
        padding: 40px 25px;
    }

    .page-header-contacts .page-header-title {
        font-size: 28px;
    }

    .page-header-contacts .page-header-subtitle {
        font-size: 16px;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .maps-container-contacts {
        padding: 0 20px;
    }

    .maps-title {
        font-size: 26px;
    }

    .map-header h3 {
        font-size: 20px;
    }

    .map-header p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-contacts {
        font-size: 13px;
        gap: 10px;
    }

    .page-header-contacts .page-header-title {
        font-size: 24px;
    }

    .page-header-contacts .page-header-subtitle {
        font-size: 15px;
    }

    .contact-section-title {
        font-size: 20px;
    }

    .contact-item {
        padding: 15px;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .form-group-contact input,
    .form-group-contact textarea,
    .form-group-contact select {
        padding: 12px;
        font-size: 14px;
    }

    .submit-btn-contact {
        padding: 16px 25px;
        font-size: 15px;
    }
}
