/* ============================================================
   CONTATTI.CSS
   ============================================================ */

/* ---- HERO ---- */
.ct-hero {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.ct-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.ct-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26,26,26,0.88) 0%,
        rgba(26,26,26,0.55) 50%,
        rgba(26,26,26,0.25) 100%
    );
}

.ct-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.ct-hero-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ct-hero-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 10px;
    max-width: 520px;
}

.ct-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    max-width: 440px;
}

/* ---- INFO BAR ---- */
.ct-info-bar {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-soft);
}

.ct-info-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-right: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.ct-info-item:last-child { border-right: none; }
.ct-info-item--link:hover { background: #F0EDE5; }

.ct-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #F3EDD6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
}

.ct-info-label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.ct-info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

/* ---- MAIN GRID ---- */
.ct-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* ---- FORM COL ---- */
.ct-form-col {
    padding: 48px 40px;
    border-right: 1px solid var(--color-border);
}

.ct-form-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 6px;
}

.ct-form-sub {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* WhatsApp */
.ct-whatsapp {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
    text-decoration: none;
    transition: background 0.2s;
}

.ct-whatsapp:hover { background: #DCFCE7; }

.ct-whatsapp-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #22C55E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-whatsapp-label {
    font-size: 11px;
    color: #16A34A;
    margin-bottom: 2px;
}

.ct-whatsapp-num {
    font-size: 14px;
    font-weight: 600;
    color: #15803D;
}

/* Form elements */
.ct-form { display: flex; flex-direction: column; }

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.ct-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.ct-form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
}

.ct-form-group input,
.ct-form-group textarea,
.ct-form-group select {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--color-text);
    font-family: var(--font-main);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    appearance: none;
}

.ct-form-group input:focus,
.ct-form-group textarea:focus,
.ct-form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(184,150,12,0.1);
}

.ct-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.ct-form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.ct-form-privacy input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.ct-form-privacy label {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.55;
    cursor: pointer;
}

.ct-form-privacy label a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ---- BOTTONE INVIA ---- */
.ct-submit {
    position: relative;
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    letter-spacing: 0.03em;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.25s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ct-submit::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 100%;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.ct-submit:hover {
    background: #111;
    transform: translateY(-1px);
}

.ct-submit:hover::before {
    width: 100%;
    opacity: 0.12;
}

.ct-submit:active {
    transform: translateY(0);
}

.ct-submit svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ct-submit:hover svg {
    transform: translateX(3px);
}

/* Feedback */
.ct-form-feedback {
    margin-top: 12px;
    font-size: 13px;
    min-height: 20px;
    color: var(--color-text-muted);
    text-align: center;
}

.ct-form-feedback.success { color: #16A34A; }
.ct-form-feedback.error   { color: #DC2626; }

/* ---- MAP COL ---- */
.ct-map-col {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-soft);
}

.ct-map-iframe {
    flex: 1;
    width: 100%;
    min-height: 480px;
    border: none;
    display: block;
    filter: grayscale(15%) contrast(1.02);
}

.ct-map-info {
    padding: 18px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ct-map-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.ct-map-address svg { color: var(--color-primary); flex-shrink: 0; }

.ct-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.ct-map-link:hover { opacity: 0.7; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .ct-hero            { height: 300px; }
    .ct-hero-title      { font-size: 26px; }
    .ct-info-bar        { flex-wrap: wrap; }
    .ct-info-item       { min-width: 50%; border-bottom: 1px solid var(--color-border); }
    .ct-main-grid       { grid-template-columns: 1fr; }
    .ct-form-col        { border-right: none; border-bottom: 1px solid var(--color-border); padding: 32px 24px; }
    .ct-map-iframe      { min-height: 350px; }
}

@media (max-width: 600px) {
    .ct-hero-content    { padding: 24px; }
    .ct-hero-title      { font-size: 22px; }
    .ct-info-item       { min-width: 100%; }
    .ct-form-row        { grid-template-columns: 1fr; }
}