/* Archivio Dolfo — foglio di stile unico e condiviso da tutte le pagine.
   Per modificare colori o dimensioni di base, cambia le variabili qui sotto. */

@font-face {
  font-family: "Apfelgrotezk";
  src: url("../assets/apfelgrotezk-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Apfelgrotezk";
  src: url("../assets/apfelgrotezk-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-bg: #eeeeec;
  --color-text: #1a1a1a;
  --color-muted: #6b6b68;
  --color-line: #cfcdc8;
  --font-display: "Apfelgrotezk", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1400px;
  --gap: clamp(1.5rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gap);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-header__logo img {
  width: 32px;
  height: 32px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.5rem;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem var(--gap) 1.5rem;
  }
  .site-nav li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-line);
  }
  .site-nav li:last-child {
    border-bottom: none;
  }
}

/* ---------- Hero / section titles ---------- */

.hero {
  padding: clamp(2rem, 8vw, 6rem) var(--gap) 0;
}

.hero--photo {
  position: relative;
  padding: 0;
  overflow: visible;
}

.hero--photo .hero__bg {
  display: block;
  width: 100%;
  height: auto;
  z-index: 0;
}

.hero--photo .hero__content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: clamp(1.5rem, 6vw, 3rem) var(--gap);
  color: var(--color-text);
  max-width: min(32rem, 34%);
}

.hero h1,
.section-title {
  font-size: clamp(2.75rem, 9vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}

.hero p.lead,
.lead {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.25;
  max-width: 44ch;
  margin: 1.5rem 0 0;
}

/* ---------- Generic section ---------- */

.section {
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.section + .section {
  border-top: 1px solid var(--color-line);
}

.section__header {
  margin-bottom: 2rem;
}

.section__image {
  margin: 2rem 0;
  overflow: hidden;
}

.section__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section__text {
  max-width: 70ch;
}

.section__text p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
}

.links-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.links-list li + li {
  margin-top: 0.5rem;
}

.links-list a {
  text-decoration: underline;
  opacity: 0.8;
}

.links-list a:hover {
  opacity: 1;
}

/* ---------- Card grid (home section previews) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

.card-grid--stacked {
  grid-template-columns: 1fr;
  max-width: 32rem;
}

.card {
  text-decoration: none;
  display: block;
}

.card__image {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__title {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Gallery grid (opere) ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery a {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
}

/* ---------- Contact / list details ---------- */

dl.detail-list {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 1.1rem;
}

dl.detail-list dt {
  color: var(--color-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding-top: 0.15rem;
}

dl.detail-list dd {
  margin: 0;
}

.social-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.social-list a {
  text-decoration: underline;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(2rem, 6vw, 4rem) var(--gap);
  border-top: 1px solid var(--color-line);
  font-size: 0.75rem;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}
