/* Two Column Contact Grid Layout */
.two-col-contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: end;
    max-width: 1200px;
    margin: 0 auto;
    height: 75vh;
}

/* Accessibilità: nasconde visivamente ma resta per screen reader */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.contact-col-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-col-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    background-color: var(--e-global-color-primary);
}

.contact-col-form .two-col-contact-form {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
.single-col-contact .two-col-contact-form {
    max-width: 600px;
    width: 100%;
    padding-bottom: 3rem;
}
/* Stile per la versione a colonna singola */
.single-col-contact {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Two Column Contact Shortcode Styles */
.two-col-contact-section {
    margin: 0 auto;
    padding-bottom: 0;
    
}

.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group textarea {
    width: 100%;
}

.form-group:last-child {
    margin-bottom: 0;
}


.two-col-title {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    text-transform: var(--e-global-typography-primary-text-transform);
    color: var(--e-global-color-aa5884c);
    text-align: left;
    margin-bottom: 0;
}

/* Desktop/Tablet: mostra versione con <br>, nasconde mobile */
.two-col-title-desktop {
    display: block;
}

.two-col-title-mobile {
    display: none;
}

.two-col-desc {
    text-align: left;
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    font-size: 1.5rem;
    font-weight: var(--e-global-typography-secondary-font-weight);
    color: var(--e-global-color-aa5884c);
    margin-top: 20px;
}

.two-col-contact {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.two-col-contact {
    display: flex;
    gap: 0;
    align-items: stretch;
    position: relative;
}
.two-col-left {
    flex: 0 0 70%;
    max-width: 70%;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 2rem;
}
.two-col-right {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
}
.two-col-form-wrap {
    width: 100%;
}
.two-col-image-below {
    right: 0;
    bottom: 0;
    width: 250px;
    z-index: 1;
    pointer-events: none;
}
.two-col-image-below img {
    width: 120%;
    height: auto;
    display: block;
    border-radius: 0 6px 6px 0;
    transform: scaleX(-1);
}
.two-col-contact-section {
    position: relative;
    margin-left: 0;
}
.two-col-right {
    flex: 1 1 60%;
    display: flex;
    gap: 16px;
    align-items: flex-end;
}
.two-col-right-inner {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}
.right-left.two-col-form-wrap {
    flex: 1 1 60%;
}
.form-row {
    display: flex;
    gap: 12px;
}
.form-group {
    flex: 1;
    margin-bottom: 12px;
}
.form-group.full {
    flex: 1 1 100%;
}

.tc-submit-btn {
    background: #2c3e50;
    color: var(--e-global-color-aa5884c) !important;
    padding: 10px 16px;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
    font-size: 1.5rem !important;
}

/* Mobile contact trigger button - nascosto su desktop */
.mobile-contact-trigger {
    display: none;
}

/* Contact form popup */
.contact-form-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.contact-form-popup.active {
    display: block;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--e-global-color-primary);
    padding: 30px;
    border-radius: 12px;
    max-width: 90%;
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent !important;
    border: none;
    font-size: 30px !important;
    line-height: 1;
    color: var(--colore-secondario-marrone) !important;
    padding: 0;
    width: 30px;
    height: 30px;
}

.popup-title {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: 1.8rem;
    font-weight: var(--e-global-typography-primary-font-weight);
    color: var(--e-global-color-aa5884c);
    margin-bottom: 20px;
    text-align: center;
}

.popup-form .form-group input {
    max-width: 100%;
}
