/**
 * Stili pagina: contatti
 */

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.cnt-page {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: oklch(15% 0.01 22);
    background: oklch(97% 0.004 22);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ──────────────────────────────────────────────────── */
.cnt-hero {
    min-height: 68vh;
    background-color: oklch(10% 0.02 22);
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 72px;
    position: relative;
    overflow: hidden;
}

.cnt-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg,
        oklch(10% 0.02 22 / 0.94) 0%,
        oklch(12% 0.02 22 / 0.78) 50%,
        oklch(10% 0.02 22 / 0.55) 100%);
    z-index: 0;
}

.cnt-hero-watermark {
    position: absolute;
    right: -20px; bottom: -20px;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(7rem, 16vw, 14rem);
    font-weight: 700;
    color: oklch(100% 0.005 22 / 0.04);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -4px;
    z-index: 1;
    white-space: nowrap;
}

.cnt-hero .container { position: relative; z-index: 2; }

.cnt-hero-eyebrow {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: oklch(68% 0.18 22);
    margin-bottom: 18px;
}

.cnt-hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.8rem, 6.5vw, 5.8rem);
    font-weight: 700;
    color: oklch(96% 0.005 22);
    line-height: 1.0;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.cnt-hero-sub {
    font-size: 1rem;
    color: oklch(80% 0.005 22 / 0.85);
    max-width: 460px;
    line-height: 1.75;
    font-weight: 300;
}

/* ── Intro strip ──────────────────────────────────────────── */
.cnt-intro-strip {
    background: oklch(99% 0.004 22);
    border-bottom: 1px solid oklch(0% 0.005 22 / 0.08);
    padding: 32px 24px;
}

.cnt-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

.cnt-intro-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cnt-intro-badge-num {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: oklch(54% 0.20 22);
    line-height: 1;
}

.cnt-intro-badge-lbl {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: oklch(54% 0.20 22 / 0.7);
    white-space: nowrap;
}

.cnt-intro-divider {
    width: 1px;
    height: 40px;
    background: oklch(0% 0.005 22 / 0.12);
    flex-shrink: 0;
}

.cnt-intro-text {
    font-size: 0.92rem;
    color: oklch(38% 0.01 22);
    line-height: 1.75;
    max-width: 680px;
}

.cnt-intro-text strong {
    color: oklch(15% 0.01 22);
    font-weight: 600;
}

/* ── Section header (shared pattern) ─────────────────────── */
.cnt-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid oklch(0% 0.005 22 / 0.1);
}

.cnt-section-num {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 700;
    color: oklch(54% 0.20 22 / 0.12);
    line-height: 1;
    letter-spacing: -2px;
    flex-shrink: 0;
}

.cnt-section-heading {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: oklch(15% 0.01 22);
    letter-spacing: -0.3px;
}

/* ── Main two-column section ──────────────────────────────── */
.cnt-main { padding: 72px 0; background: oklch(97% 0.004 22); }

.cnt-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    align-items: start;
}

/* ── Form ─────────────────────────────────────────────────── */
.cnt-form-group {
    margin-bottom: 28px;
}

.cnt-form-label {
    display: block;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: oklch(50% 0.01 22);
    margin-bottom: 8px;
}

.cnt-form-label .req { color: oklch(54% 0.20 22); margin-left: 2px; }

.cnt-form-input,
.cnt-form-select,
.cnt-form-textarea {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid oklch(0% 0.005 22 / 0.2);
    padding: 10px 0 10px;
    font-family: 'Montserrat', inherit;
    font-size: 0.95rem;
    color: oklch(15% 0.01 22);
    transition: border-color 0.2s;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.cnt-form-input:focus-visible,
.cnt-form-select:focus-visible,
.cnt-form-textarea:focus-visible {
    border-bottom-color: oklch(54% 0.20 22);
}

.cnt-form-input::placeholder,
.cnt-form-textarea::placeholder {
    color: oklch(68% 0.005 22 / 0.6);
    font-weight: 300;
}

.cnt-form-select-wrap {
    position: relative;
}

.cnt-form-select-wrap::after {
    content: '';
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid oklch(50% 0.01 22);
    pointer-events: none;
}

.cnt-form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.cnt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.cnt-form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: oklch(11% 0.01 22);
    color: oklch(96% 0.005 22);
    border: none;
    padding: 18px 28px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.cnt-form-submit::after { content: '\2192'; font-size: 1.1rem; }
.cnt-form-submit:hover { background: oklch(54% 0.20 22); }

.cnt-form-privacy { margin-top: 8px; }
.cnt-form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: oklch(35% 0.01 22);
    cursor: pointer;
}
.cnt-form-check input { margin-top: 4px; flex-shrink: 0; accent-color: oklch(54% 0.20 22); }
.cnt-form-check a { color: oklch(54% 0.20 22); text-decoration: underline; }

/* Alerts */
.cnt-alert {
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.cnt-alert--ok {
    background: oklch(93% 0.05 155);
    color: oklch(28% 0.08 155);
}

.cnt-alert--err {
    background: oklch(93% 0.05 22);
    color: oklch(30% 0.12 22);
}

/* ── Info column ──────────────────────────────────────────── */
.cnt-info-block { margin-bottom: 40px; }

.cnt-info-label {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: oklch(50% 0.01 22);
    display: block;
    margin-bottom: 6px;
}

.cnt-info-phone {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: oklch(15% 0.01 22);
    text-decoration: none;
    letter-spacing: -1px;
    line-height: 1.1;
    display: block;
    transition: color 0.2s;
}

.cnt-info-phone:hover { color: oklch(54% 0.20 22); }

.cnt-info-value {
    font-size: 0.9rem;
    color: oklch(30% 0.01 22);
    line-height: 1.6;
}

.cnt-info-link {
    color: oklch(54% 0.20 22);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.cnt-info-link:hover { opacity: 0.75; }

.cnt-info-sep {
    height: 1px;
    background: oklch(0% 0.005 22 / 0.1);
    margin: 28px 0;
}

.cnt-social-row {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.cnt-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: oklch(38% 0.01 22);
    text-decoration: none;
    border-bottom: 1px solid oklch(0% 0.005 22 / 0.2);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.cnt-social-link:hover { color: oklch(54% 0.20 22); border-color: oklch(54% 0.20 22); }

/* ── Info CTA button ──────────────────────────────────────── */
.cnt-info-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: oklch(11% 0.01 22);
    color: oklch(96% 0.005 22);
    text-decoration: none;
    padding: 14px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 16px;
    transition: background 0.2s;
}
.cnt-info-btn::after { content: '\2192'; font-size: 1rem; }
.cnt-info-btn:hover { background: oklch(54% 0.20 22); }

/* ── Map ──────────────────────────────────────────────────── */
.cnt-map { padding-top: 72px; }

.cnt-map-embed {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    margin-top: 40px;
    filter: grayscale(20%);
}

/* ── Admin section ────────────────────────────────────────── */
.cnt-admin {
    background: oklch(99% 0.004 22);
    padding: 64px 0;
    border-top: 1px solid oklch(0% 0.005 22 / 0.08);
}

.cnt-msg-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.cnt-msg-item {
    padding: 20px 24px;
    background: oklch(97% 0.004 22);
    border-top: 2px solid oklch(0% 0.005 22 / 0.08);
}

.cnt-msg-item--unread { border-top-color: oklch(54% 0.20 22); }

.cnt-msg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cnt-msg-sender { font-weight: 600; font-size: 0.9rem; }
.cnt-msg-date { font-size: 0.78rem; color: oklch(55% 0.01 22); }
.cnt-msg-subj { font-size: 0.82rem; color: oklch(50% 0.01 22); margin-bottom: 10px; }
.cnt-msg-body { font-size: 0.88rem; color: oklch(35% 0.01 22); line-height: 1.6; margin-bottom: 14px; }

.cnt-msg-actions { display: flex; gap: 12px; }

.cnt-btn-del,
.cnt-btn-read {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px 0;
    border-bottom: 1px solid;
    transition: opacity 0.2s;
}

.cnt-btn-del { color: oklch(45% 0.18 22); border-color: oklch(45% 0.18 22 / 0.4); }
.cnt-btn-read { color: oklch(40% 0.10 155); border-color: oklch(40% 0.10 155 / 0.4); }
.cnt-btn-del:hover, .cnt-btn-read:hover { opacity: 0.6; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .cnt-grid { grid-template-columns: 1fr; gap: 56px; }
    .cnt-intro-inner { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 768px) {
    .cnt-hero { min-height: 56vh; padding: 100px 0 52px; }
    .cnt-form-row { grid-template-columns: 1fr; gap: 0; }
    .cnt-map-embed { height: 280px; }
    .cnt-main, .cnt-map { padding: 56px 0; }
}

@media (max-width: 480px) {
    .cnt-intro-badge { display: none; }
    .cnt-intro-divider { display: none; }
}
