/* =========================================================
   CONTATTI - STUDIO LEGALE PEZZELLA
   ========================================================= */

:root {
    --contact-blue: #063568;
    --contact-blue-deep: #041a33;
    --contact-blue-soft: #0c447d;

    --contact-gold: #c5a15a;
    --contact-gold-soft: #d4b774;

    --contact-white: #ffffff;
    --contact-paper: #f5f3ee;

    --contact-text: #20252b;
    --contact-muted: #626a72;
    --contact-line: #e1e2de;

    --contact-green: #1f6b4f;
    --contact-red: #9b3535;
}

.contact-page {
    margin: 0;
    background: var(--contact-white);
    color: var(--contact-text);
}

.contact-container {
    width: min(calc(100% - 64px), 1240px);
    margin-inline: auto;
}

.site-header-solid {
    position: relative;
    background: var(--contact-blue);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

/* =========================================================
   TITOLI PICCOLI
   ========================================================= */

.contact-kicker,
.section-kicker {
    margin: 0 0 14px;
    color: var(--contact-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.section-kicker-light {
    color: var(--contact-gold-soft);
}

/* =========================================================
   HERO
   ========================================================= */

.contact-hero {
    padding: 66px 0 64px;

    background:
        radial-gradient(
            circle at 86% 25%,
            rgba(25,89,151,.28),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #063568 0%,
            #052f5d 62%,
            #041f3f 100%
        );

    color: #fff;
}

.contact-hero-inner {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 80px;
    align-items: end;
}

.contact-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 6vw, 82px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.045em;
}

.contact-hero-copy {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 18px;
    line-height: 1.65;
}

/* =========================================================
   DATI + MAPPA
   ========================================================= */

.contact-info-section {
    padding: 90px 0 100px;
    background: var(--contact-white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: .83fr 1.17fr;
    gap: 84px;
    align-items: start;
}

.contact-details h2,
.map-heading h2 {
    margin: 0;
    color: var(--contact-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 3.4vw, 50px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.contact-lawyer {
    margin: 13px 0 38px;
    color: var(--contact-muted);
    font-size: 16px;
}

.contact-list {
    border-top: 1px solid var(--contact-line);
}

.contact-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid var(--contact-line);
}

.contact-label {
    padding-top: 2px;

    color: #878d93;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.contact-row address,
.contact-row a,
.hours {
    color: #3f4850;
    font-size: 15px;
    line-height: 1.65;
    font-style: normal;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-links a {
    position: relative;
    color: var(--contact-blue);
    word-break: break-word;
}

.contact-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;

    height: 1px;
    background: rgba(197,161,90,.60);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.contact-links a:hover::after {
    transform: scaleX(1);
}

.hours {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 22px;
}

.hours strong {
    color: var(--contact-blue);
    font-weight: 600;
}

/* =========================================================
   MAPPA
   ========================================================= */

.map-heading {
    margin-bottom: 28px;
}

.map-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #edf0f2;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.directions-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 52px;
    margin-top: 18px;
    padding: 0 22px;

    background: var(--contact-blue);
    color: #fff;

    font-size: 12px;
    font-weight: 700;

    transition:
        transform .2s ease,
        background-color .2s ease;
}

.directions-button:hover {
    transform: translateY(-2px);
    background: var(--contact-blue-soft);
}

/* =========================================================
   FORM
   ========================================================= */

.contact-form-section {
    padding: 94px 0 100px;

    background:
        linear-gradient(
            135deg,
            #063568 0%,
            #052f5d 62%,
            #041e3b 100%
        );

    color: #fff;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 90px;
    align-items: start;
}

.form-intro h2 {
    max-width: 520px;
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.form-intro > p:not(.section-kicker) {
    max-width: 510px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 16px;
    line-height: 1.72;
}

.direct-email {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;

    margin-top: 40px;
    padding-top: 28px;

    border-top: 1px solid rgba(255,255,255,.18);
}

.direct-email span {
    color: rgba(255,255,255,.58);
    font-size: 12px;
}

.direct-email .pec-note {
    margin-top: 13px;
}

.direct-email a {
    color: var(--contact-gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    word-break: break-word;
}

.form-area {
    padding: 40px;
    background: #fff;
    color: var(--contact-text);

    box-shadow:
        0 28px 70px rgba(2,14,29,.16);
}

/* =========================================================
   ALERT
   ========================================================= */

.form-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;

    margin-bottom: 28px;
    padding: 18px 20px;

    border-left: 3px solid;
}

.form-alert strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.form-alert span {
    font-size: 14px;
    line-height: 1.55;
}

.form-alert-success {
    border-color: var(--contact-green);
    background: #edf7f2;
    color: #214f3e;
}

.form-alert-error {
    border-color: var(--contact-red);
    background: #fbefef;
    color: #713333;
}

/* =========================================================
   CAMPI
   ========================================================= */

.contact-form {
    position: relative;
}

.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-field {
    margin-bottom: 23px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;

    color: #6f767d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #d9dde0;
    border-radius: 0;

    background: #fff;
    color: #26313a;

    font: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-field input {
    min-height: 48px;
}

.form-field textarea {
    resize: vertical;
    min-height: 160px;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--contact-gold);
    box-shadow: 0 0 0 3px rgba(197,161,90,.10);
}

.privacy-check {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;

    color: #656d75;
    font-size: 13px;
    line-height: 1.55;
}

.privacy-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--contact-blue);
}

.form-note {
    margin: 18px 0 0;

    color: #8a9095;
    font-size: 12px;
    line-height: 1.55;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 52px;
    margin-top: 28px;
    padding: 0 23px;

    border: 1px solid var(--contact-blue);

    background: var(--contact-blue);
    color: #fff;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        background-color .2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: var(--contact-blue-soft);
}

/* honeypot invisibile */

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* =========================================================
   FOOTER
   ========================================================= */

.contact-footer {
    padding: 25px 0;
    background: #031428;
    color: rgba(255,255,255,.55);
}

.contact-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    font-size: 11px;
}

.contact-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-footer-brand strong {
    color: var(--contact-gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
}

.contact-footer-copy {
    color: rgba(255,255,255,.38);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {

    .contact-hero-inner,
    .contact-info-grid,
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .contact-info-section {
        padding: 74px 0 82px;
    }

    .contact-form-section {
        padding: 76px 0 82px;
    }

    .map-frame {
        aspect-ratio: 16 / 9;
    }

    .form-area {
        padding: 34px;
    }
}

@media (max-width: 640px) {

    .contact-container {
        width: calc(100% - 34px);
    }

    .contact-hero {
        padding: 52px 0 50px;
    }

    .contact-hero-copy {
        font-size: 16px;
    }

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

    .hours {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .hours strong + span {
        margin-top: 10px;
    }

    .form-two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-area {
        padding: 26px 20px;
    }

    .submit-button,
    .directions-button {
        width: 100%;
    }

    .contact-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
