/* Contact page (EN + IT): details + company information on the left, message form on the right,
   wide map below. Quiet, refined style: regular-weight text, hairlines, bare icons. Cards use the shared card
   tokens of css/style.css :root (border, radius, soft shadow). */

/* Cards: shared card look */
.ct-card { background: #fff; border: var(--card-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.2rem 1.5rem 1rem; }
.ct-card + .ct-card, .ct-card + .ct-mapcard { margin-top: 1.6rem; }

/* Section titles: small, letter-spaced label with a bare icon */
.ct-title {
    display: flex; align-items: center; gap: .6rem; margin: 0 0 .35rem; padding-bottom: .8rem;
    font-family: "Open Sans", sans-serif; font-size: .74rem; font-weight: 600; letter-spacing: .13em;
    text-transform: uppercase; color: var(--primary-text); border-bottom: 1px solid #edf1ee;
}
.ct-title .ct-ico { width: auto; height: auto; background: none; border-radius: 0; font-size: .95rem; color: var(--primary); }

/* Bare icons (no circles) */
.ct-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; color: var(--primary); font-size: .95rem; }

/* Contact details: icon | label | value, hairline between rows */
.ct-row { display: flex; align-items: flex-start; gap: .85rem; padding: .7rem 0; }
.ct-row + .ct-row { border-top: 1px solid #f0f3f1; }
.ct-row .ct-ico { margin-top: .15rem; }
.ct-row > div { flex: 1 1 auto; display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: .8rem; align-items: baseline; }
.ct-label { display: block; font-size: .82rem; font-weight: 400; color: #5f6b64; overflow-wrap: break-word; }   /* a longer translated label wraps in its column */
.ct-value { font-size: .92rem; font-weight: 400; line-height: 1.55; color: #2f3b34; }
.ct-value a { color: inherit; text-decoration: none; }
.ct-value a:hover { color: var(--primary-text); }
.ct-note { display: block; font-size: .82rem; color: #5f6b64; }

.ct-wa {
    display: inline-flex; align-items: center; gap: .3rem; margin-left: .6rem; padding: .05rem .55rem;
    border-radius: 10px; background: #eaf8ef; color: #137a3a !important; font-size: .72rem; font-weight: 600; vertical-align: middle;
}
.ct-wa:hover { background: #d9f2e2; color: #137a3a !important; }

/* Message form (right column) */
.ct-formcard { padding: 1.2rem 1.5rem 1.5rem; }
.ct-formhead { margin-bottom: 1rem; }
.ct-formhead .ct-title { padding-bottom: .8rem; margin-bottom: .9rem; }
.ct-formhead p { margin: 0; font-size: .92rem; color: #6c7a72; }

/* Map under the contact details (left column) */
.ct-mapcard { display: flex; flex-direction: column; overflow: hidden; margin-top: 1.6rem; border-radius: var(--radius-lg); background: #fff; border: var(--card-border); box-shadow: var(--shadow-sm); }
.ct-mapcard iframe { display: block; width: 100%; height: 270px; border: 0; background: #e9ecef; }
.ct-mapbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; }
.ct-mapbar .btn { flex: 0 1 auto; padding: .45rem .95rem !important; font-size: .85rem; }
.ct-mapbar span { font-size: .92rem; font-weight: 500; color: #2f3b34; }
.ct-mapbar small { display: block; font-size: .82rem; font-weight: 400; color: #5f6b64; }

/* Desktop: the form card fills the height of the left column; the message box grows to fit */
@media (min-width: 992px) {
    .ct-formwrap { display: flex; }
    .ct-formwrap > .ct-formcard { flex: 1 1 auto; display: flex; flex-direction: column; }
    .ct-formcard form { flex: 1 1 auto; display: flex; flex-direction: column; }
    .ct-formcard form > .row {
        flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto;
        gap: .9rem; margin: 0;
    }
    .ct-formcard form > .row > * { width: auto; max-width: none; padding: 0; margin: 0; }
    .ct-formcard form > .row > .col-12 { grid-column: 1 / -1; }
    .ct-formcard form > .row > .col-12 .form-floating { height: 100%; }
    /* .form-floating > .form-control (Bootstrap 5.3, min-height 58px) is more specific than a bare textarea rule */
    .ct-formcard form .form-floating > textarea.form-control { height: 100% !important; min-height: 120px; }
}

/* Narrow laptops: the left column is slimmer, so give the values a little more room */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ct-row > div { grid-template-columns: 6rem minmax(0, 1fr); gap: .6rem; }
}

@media (max-width: 991.98px) {
    .ct-mapcard iframe { height: 380px; }
}
@media (max-width: 575.98px) {
    .ct-card { padding: 1rem 1.1rem .9rem; }
    .ct-formcard { padding: 1rem 1.1rem 1.2rem; }
    .ct-row > div { grid-template-columns: 1fr; gap: .1rem; }
    .ct-label { white-space: normal; }
    .ct-mapcard iframe { height: 340px; }
    .ct-mapbar { flex-direction: column; align-items: stretch; text-align: center; }
}
