/* =========================
   CONTATTI — clean / OSF-like
   Scoped: .contacts-page
   ========================= */

/* anti micro-overflow (icone / iframe) */
html, body { overflow-x: hidden; }
@supports (overflow: clip){
  html, body { overflow-x: clip; }
}

.contacts-page{
  background: var(--color-surface, #fff);
  color: var(--color-text, #111);
}

/* WRAP: uguale a tutto il sito (allineato al logo/header) */
.contacts-wrap{
  max-width: var(--container-max, 1100px);
  margin: 0 auto;
  padding-inline: var(--page-pad);
  min-width: 0;
}

/* =========================
   HERO (coerente con le altre pagine)
   ========================= */
.contacts-hero{
  background: #fff;
  padding: var(--page-head-pt, clamp(2.25rem, 4vw, 3.2rem)) 0 var(--page-head-pb, 1.4rem);
}

.contacts-title{
  margin: 0;
  font-size: clamp(2.05rem, 3.2vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  line-height: 1.02;
}

/* Divider nero full-width (come le altre pagine) */
.contacts-divider{
  border: 0;
  border-top: 3px solid #000;
  margin: 2.75rem 0 0;
}

/* =========================
   GRID CARDS
   ========================= */
.contacts-cards{
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.contacts-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: stretch;
}

@media (max-width: 980px){
  .contacts-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   CARD — elegante, neutra, aria
   ========================= */
.contacts-card{
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  min-width: 0;

  /* equal height */
  display: flex;
  flex-direction: column;
}

.contacts-card:hover{
  border-color: rgba(0,0,0,0.22);
}

/* head: icona piccola + titolo (allineato a sinistra) */
.contacts-card__head{
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.contacts-iconbox{
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.12);
  display: grid;
  place-items: center;
  color: var(--color-accent, #922A5E);
  flex: 0 0 auto;
}

.contacts-iconbox svg{
  display: block;
}

/* titolo card: nero, leggibile, SEO ok (è H2 nell’HTML) */
.contacts-card__title{
  margin: 0;
  font-size: .92rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
}

/* testo */
.contacts-card__text{
  margin: 0;
  color: var(--color-muted, #625d5d);
  font-size: 1rem;
  line-height: 1.75;
}

/* variant piccolo */
.contacts-card__text--small{
  margin-top: .9rem;
  font-size: .93rem;
  line-height: 1.65;
}

/* CTA in basso, sempre allineata */
.contacts-card__strong{
  margin-top: auto;       /* spinge in fondo */
  padding-top: 1.1rem;
  font-weight: 800;
  color: #111;
}

/* link */
.contacts-card__link{
  color: var(--color-accent, #922A5E);
  text-decoration: none;
}

/* se usi già .link-underline globale, qui settiamo solo il colore dell’underline */
.contacts-card__link.link-underline::after{
  background: rgba(146, 42, 94, 0.85);
}

.contacts-card__link:focus-visible{
  outline: 3px solid rgba(146, 42, 94, 0.22);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================
   MAP + SOCIAL
   ========================= */
.contacts-map{
  padding-top: 2.4rem;
  padding-bottom: 2.2rem;
}

.map-frame{
  border: 1px solid rgba(0,0,0,0.12);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 6;
  min-height: 260px;
}

.map-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 980px){
  .map-frame{
    aspect-ratio: 16 / 9;
  }
}

/* social: pill minimal */
.contacts-social{
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding-top: 1rem;
}

.social-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;

  color: var(--color-accent, #922A5E);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
}

.social-btn:hover{
  border-color: rgba(0,0,0,0.22);
}

.social-btn:focus-visible{
  outline: 3px solid rgba(146, 42, 94, 0.22);
  outline-offset: 2px;
}
