/* ============================================
   CONTATTI - FORM SECTION
   ============================================ */
.contatti-form {
    padding: 100px 20px 80px;
    background: #f9f9f9;
}
@media (min-width: 768px) {
    .contatti-form {
        padding: 120px 20px 100px;
    }
}
.contatti-form .container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero a due colonne */
.contatti-form__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 60px;
    align-items: center;
}
@media (min-width: 768px) {
    .contatti-form__hero {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        margin-bottom: 80px;
    }
}
@media (min-width: 1024px) {
    .contatti-form__hero {
        gap: 80px;
    }
}

.contatti-form__hero-left {
    text-align: left;
}

.contatti-form__hero-title {
    margin: 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #000000;
}

.contatti-form__hero-right {
    text-align: left;
}

.contatti-form__hero-text {
    margin: 0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: #333333;
}

/* ============================================
   MESSAGGIO DI SUCCESSO
   ============================================ */
.contact-form__success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid var(--sd-color-ripe-tomato, #e86a4d);
    border-radius: 4px;
    padding: 24px 28px;
    margin-bottom: 48px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-form__success-message svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--sd-color-ripe-tomato, #e86a4d);
    margin-top: 2px;
}

.contact-form__success-message h3 {
    margin: 0 0 8px 0;
    font-family: var(--sd-font-heading);
    font-size: 20px;
    font-weight: 600;
    color: #155724;
    line-height: 1.3;
}

.contact-form__success-message p {
    margin: 0;
    font-family: var(--sd-font-mono);
    font-size: 15px;
    color: #155724;
    line-height: 1.6;
}

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

@media (max-width: 767px) {
    .contact-form__success-message {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }
    
    .contact-form__success-message svg {
        margin: 0 auto;
    }
    
    .contact-form__success-message h3 {
        font-size: 18px;
    }
    
    .contact-form__success-message p {
        font-size: 14px;
    }
}

/* ============================================
   ACCESSIBILITÀ - LABEL INVISIBILI
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Titolo Form */
.contatti-form__title {
    margin: 0 0 40px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(16px, 2.4vw, 20px);
    font-weight: 600;
    line-height: 1;
    color: #000000;
}
@media (min-width: 768px) {
    .contatti-form__title {
        margin-bottom: 48px;
    }
}

/* Form Layout */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .contact-form__row {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }
}

.contact-form__field--full {
    grid-column: 1 / -1;
}

/* Input e Textarea con font mono */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: var(--sd-font-mono);
    line-height: 1.5;
    color: #333333;
    background: #FFFFFF;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    font-family: var(--sd-font-mono);
    color: #999999;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--sd-color-ripe-tomato, #e86a4d);
    box-shadow: 0 0 0 3px rgba(232, 106, 77, 0.1);
}

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

.contact-form__note {
    margin: 0 0 32px 0;
    font-size: 14px;
    font-family: var(--sd-font-mono);
    color: #666666;
}

/* Interessi */
.contact-form__interests {
    margin: 48px 0 40px 0;
}

.contact-form__interests-title {
    margin: 0 0 24px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 400;
    line-height: 1.3;
    color: #000000;
}

.contact-form__checkboxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .contact-form__checkboxes {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

.contact-form__checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form__checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--sd-font-mono);
    color: #333333;
    transition: color 0.2s ease;
}

.contact-form__checkbox:hover {
    color: var(--sd-color-ripe-tomato, #e86a4d);
}

.contact-form__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--sd-color-ripe-tomato, #e86a4d);
}

.contact-form__checkbox span {
    user-select: none;
}

/* Submit Button - Stile SevenData identico */
.contact-form__submit {
    margin: 48px 0 24px 0;
    text-align: center;
}

.contact-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: var(--sd-color-sevendata-red);
    color: var(--sd-color-total-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--sd-font-heading);
    border: none;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 5% 100%, 0 60%);
}
@media (min-width: 768px) {
    .contact-form__button {
        padding: 12px 20px;
        gap: 12px;
        font-size: 15px;
    }
}
@media (min-width: 992px) {
    .contact-form__button {
        padding: 10px 16px;
        font-size: 13px;
    }
}
@media (min-width: 1200px) {
    .contact-form__button {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Effetto trapezoidale sinistra */
.contact-form__button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50px;
    background: #e86a4d;
    clip-path: polygon(0 0, 100% 0, calc(100% - 25px) 100%, 0 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
@media (min-width: 768px) {
    .contact-form__button::before {
        width: 60px;
        clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
    }
}

/* Hover states */
.contact-form__button:hover {
    background: var(--sd-color-ripe-tomato);
    transform: translateX(4px);
}

.contact-form__button:hover::before {
    width: calc(100% - 50px);
}

.contact-form__button:active {
    transform: translateX(2px);
}

/* Arrow icon */
.contact-form__button-arrow {
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    display: inline-block;
    transform: rotate(-45deg);
}
@media (min-width: 768px) {
    .contact-form__button-arrow {
        font-size: 18px;
    }
}

.contact-form__button:hover .contact-form__button-arrow {
    transform: rotate(0deg);
}

/* Privacy */
.contact-form__privacy {
    text-align: center;
    font-size: 14px;
    font-family: var(--sd-font-mono);
    color: #666666;
    margin: 0;
}

.contact-form__privacy a {
    color: var(--sd-color-ripe-tomato, #e86a4d);
    text-decoration: underline;
}

.contact-form__privacy a:hover {
    opacity: 0.7;
}

/* ============================================
   CONTATTI - INFO + MAPPA SECTION
   ============================================ */
.contatti-info {
    padding: 80px 20px 100px;
    background: #FFFFFF;
}
@media (min-width: 768px) {
    .contatti-info {
        padding: 100px 20px 120px;
    }
}

.contatti-info .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contatti-info__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 768px) {
    .contatti-info__wrapper {
        grid-template-columns: 35% 65%;
        gap: 5px;
    }
}

/* Info Left */
.contatti-info__left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contatti-info__block {
    /* Contenitore per ogni blocco */
}

.contatti-info__subtitle {
    margin: 0 0 16px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 500;
    line-height: 1.3;
    color: #000000;
}

.contatti-info__text {
    margin: 0;
    font-family: var(--sd-font-mono); /* Font mono */
    font-size: 16px; /* Max 16px */
    line-height: 1.7;
    color: #333333;
}

.contatti-info__text a {
    color: var(--sd-color-ripe-tomato, #e86a4d);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contatti-info__text a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Map Right */
.contatti-info__right {
    width: 100%;
    height: 350px; /* Ridotta altezza */
}
@media (min-width: 768px) {
    .contatti-info__right {
        height: 400px; /* Ridotta da 500px a 400px */
    }
}

.contatti-info__map {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contatti-info__map iframe {
    display: block;
}

.contact-form__error-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #fee;
    border: 2px solid #EA1C18;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    animation: slideDown 0.3s ease-out;
}

.contact-form__error-message svg {
    flex-shrink: 0;
    color: #EA1C18;
    margin-top: 2px;
}

.contact-form__error-message h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #c00;
}

.contact-form__error-message p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

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