/* T2.5 — Contatti. Only page-specific rules; components come from site.css. */

.ct-eyebrow {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- head: ink band, text + entrance photo */
.ct-head { background: var(--ink); color: var(--paper); padding-block: clamp(28px, 5vw, 64px) calc(clamp(28px, 5vw, 64px) + 72px); }
.ct-head__grid { display: grid; gap: 28px; align-items: center; }
.ct-head__text { display: grid; gap: 16px; }
.ct-head h1 { max-width: 14ch; }
.ct-head .lead { color: #D9DBDE; max-width: 38ch; }
.ct-head__rating { color: var(--paper); }
.ct-head__media { aspect-ratio: 3 / 2; background: var(--ink-2); }
.ct-head__media img { object-position: 0% 50%; }
@media (min-width: 1024px) {
  .ct-head__grid { grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 5vw, 80px); }
  .ct-head__media { aspect-ratio: 4 / 3; }
}

/* ---------- three channels, equal weight, overlapping the head */
.ct-channels { margin-top: -72px; position: relative; }
.ct-channels__list { display: grid; gap: 12px; }
@media (min-width: 768px) { .ct-channels__list { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }
.ct-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border-radius: var(--radius-lg); padding: 22px 22px 20px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(18, 20, 22, .35);
}
.ct-card__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink); margin-bottom: 4px;
}
.ct-card__icon .icon { width: 22px; height: 22px; }
.ct-card--wa .ct-card__icon { background: var(--wa); }
.ct-card__title { font-size: var(--fs-h3); }
.ct-card__sub { color: var(--muted); font-size: var(--fs-small); line-height: 1.4; }
.ct-card__num {
  font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.1; text-decoration: none; margin-top: 6px;
  white-space: nowrap;
}
.ct-card__num:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.ct-card__more { font-size: var(--fs-small); color: var(--muted); }
.ct-card__more a { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-card .status { margin-top: 2px; }
.ct-card > .ct-card__more { flex: 1; }
.ct-card__btn { margin-top: 8px; white-space: nowrap; }
/* 768–1023: three narrow cards; the label alone fits, the icon would push it onto two lines */
@media (min-width: 768px) and (max-width: 1023px) {
  .ct-card { padding: 20px 18px 18px; }
  .ct-card__btn { padding-inline: 12px; font-size: .9375rem; }
  .ct-card__btn .icon { display: none; }
}

/* Mobile: compact cards, the three channels fit in about one screen. */
@media (max-width: 767px) {
  .ct-card { padding: 18px; gap: 6px; }
  .ct-card__icon, .ct-card__more { display: none; }
  .ct-card__num { margin-top: 0; }
}

/* ---------- form + sede */
.ct-main { padding-top: clamp(40px, 6vw, 80px); }
.ct-main__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 1024px) { .ct-main__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ct-form { box-shadow: 0 1px 0 var(--line); }
@media (min-width: 1024px) { .ct-form { position: sticky; top: calc(var(--header-h) + 24px); } }

.ct-sede { display: grid; gap: 24px; }
.ct-sede__title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); max-width: 22ch; }
.ct-sede__addr { font-style: normal; font-size: var(--fs-lead); line-height: 1.45; }
.ct-sede__contacts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ct-sede__contacts > div {
  display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: center;
  min-height: 48px; border-bottom: 1px solid var(--line);
}
.ct-sede__contacts dt { color: var(--muted); font-size: var(--fs-small); }
.ct-sede__contacts dd { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ct-sede__contacts a { display: inline-flex; align-items: center; min-height: 44px; }
.ct-sede__hours { display: grid; gap: 24px; }
@media (min-width: 640px) { .ct-sede__hours { grid-template-columns: 1fr 1fr; } }
.ct-sede__hours h3 { font-size: 1rem; margin-bottom: 8px; }
.ct-sede__hours .status { margin-bottom: 8px; }

.ct-map { aspect-ratio: 4 / 3; }
.ct-map[hidden] { display: none; }
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 768px) { .ct-map { aspect-ratio: 16 / 10; } }
