/* ==========================================================
   Studio Associato Fiscale e Tributario — Giane / Guandalini
   Vanilla CSS, nessuna dipendenza
   ========================================================== */

:root {
  --red: #d7262c;
  --red-dark: #9b1b1b;
  --ink: #2b2b2b;
  --ink-soft: #4a4a4a;
  --grey-text: #8a8a8a;
  --grey-card: #ebebeb;
  --teal-dark: #0f2a33;
  --teal-hero: #1f3b45;
  --white: #ffffff;
  --font: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1140px;
  --container-narrow: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.25; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 48px, var(--container-narrow)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 28px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 56px; width: auto; }

.nav { display: flex; gap: 36px; }
.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: opacity .2s;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: .75; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  background-color: var(--teal-hero);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 45, 55, .72);
  z-index: -1;
}
/* Le foto hero (hero-home.jpg, hero-chi-siamo.jpg, hero-consulenze.jpg) vanno in img/:
   se mancano, resta il gradiente sottostante */
.hero--home { min-height: 760px; padding: 140px 0 100px; background-image: url("../img/hero-home.jpg"), linear-gradient(160deg, #2a4b56, #142d36); }
.hero--page { min-height: 480px; padding: 120px 0 60px; }
.hero--about { background-image: url("../img/hero-chi-siamo.jpg"), linear-gradient(160deg, #2a4b56, #142d36); }
.hero--services { background-image: url("../img/hero-consulenze.jpg"), linear-gradient(160deg, #2a4b56, #142d36); }

.hero__mark { width: 86px; margin: 0 auto 28px; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
}
.hero p {
  margin: 20px auto 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  max-width: 700px;
}
.hero .btn { margin-top: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--dark { background: var(--red-dark); }
.btn--dark:hover { background: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section__title {
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 36px;
}
.lead {
  text-align: center;
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Home: due aree ---------- */
.areas {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 900px;
  margin-inline: auto;
}
.area { text-align: center; }
.area__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 28px;
}
.area__photo img { width: 100%; height: 100%; object-fit: cover; }
.area h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.area__who {
  color: var(--red);
  font-weight: 600;
  margin: 12px 0 28px;
}

/* ---------- Chi siamo ---------- */
.prose p { margin: 0 0 24px; font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 700; }

.group-title {
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 72px 0 32px;
}
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, 230px);
  gap: 14px;
}
.person__photo {
  aspect-ratio: 230 / 345;
  overflow: hidden;
  border-radius: 6px;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h4 {
  margin-top: 26px;
  font-size: 1.05rem;
  font-weight: 700;
}
.person p {
  margin: 10px 0 0;
  font-size: .72rem;
  font-weight: 700;
}

/* ---------- Consulenze ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--grey-card);
  border-radius: 24px;
  padding: 48px 40px 52px;
}
.card__icon {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin-bottom: 32px;
}
.card__icon svg { width: 100%; height: 100%; fill: currentColor; }
.card h2 {
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.card__who {
  color: var(--grey-text);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 12px 0 28px;
}
.card__label {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #4a2d3a;
  margin-bottom: 20px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}
.card__collab {
  margin-top: 32px;
  color: var(--grey-text);
  font-size: 1.2rem;
  font-weight: 500;
}
.card__names {
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- Contatti (footer band) ---------- */
.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--white);
  min-height: 560px;
}
.contact__info {
  background: var(--teal-dark);
  display: flex;
  align-items: center;
  padding: 90px 0 90px max(48px, calc((100vw - var(--container)) / 2 + 24px));
}
.contact__info h2 {
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 36px;
}
.contact__info li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 36px;
  font-size: 1.05rem;
}
.contact__info li svg { width: 20px; height: 20px; flex: 0 0 20px; fill: var(--red); margin-top: 3px; }
.contact__info a { color: var(--white); }

.contact__map {
  position: relative;
  background: #4a4a4a url("../img/city.jpg") center/cover;
  display: flex;
  align-items: center;
}
.contact__map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(60, 60, 60, .75);
}
.contact__map iframe {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 480px;
  border: 0;
  margin-left: -120px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.site-footer {
  text-align: center;
  padding: 40px 0;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .areas, .services { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__info { padding: 70px 24px; }
  .contact__map { padding: 40px 24px; justify-content: center; }
  .contact__map iframe { margin-left: 0; height: 380px; }
  .people { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { padding: 18px 0; }
  .brand img { height: 44px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--teal-dark);
    padding: 12px 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero--home { min-height: 600px; padding-top: 120px; }
  .hero--page { min-height: 380px; padding-top: 110px; }
  .section { padding: 60px 0; }
  .card { padding: 36px 24px; border-radius: 18px; }
}
