/* GDS · Abitare con cura — foglio di stile unico */

/* ---------- Font ospitati localmente (SIL Open Font License, vedi fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --crema: #F5F1E8;
  --sabbia: #D9CCB8;
  --verde: #344C43;
  --verde-scuro: #22332D;
  --verde-ig: #2C413A;
  --terracotta: #A6533D;
  --terracotta-scuro: #8E4532;
  --bianco: #FFFFFF;
  --nero: #000;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Montserrat, system-ui, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--nero);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--verde); }
img { display: block; max-width: 100%; }
picture { display: contents; }

/* Accessibilità: visibili solo navigando con la tastiera */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ig-strip__item:focus-visible { outline-color: var(--crema); outline-offset: -4px; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--verde);
  color: var(--bianco);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bianco); }
main:focus { outline: none; }
p { margin: 0; }
figure { margin: 0; }

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  margin: 0;
}
.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verde);
  margin: 0 0 20px;
}
.caption {
  font-family: Montserrat, sans-serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--crema); }
.site-header__bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: block; text-decoration: none; flex-shrink: 0; }
.site-header__logo img { height: 40px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-desktop a { color: var(--verde); text-decoration: none; }
.nav-desktop a:hover { color: var(--terracotta); }
.nav-desktop__ig { display: flex; align-items: center; }

.nav-mobile-bar { display: flex; align-items: center; gap: 8px; }
.nav-mobile-bar__ig {
  color: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.menu-btn {
  height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--verde);
  color: var(--verde);
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--sabbia);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  color: var(--verde);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--sabbia);
}
.nav-mobile a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-mobile-bar, .nav-mobile { display: none !important; }
}
@media (max-width: 899.98px) {
  .nav-desktop { display: none; }
}

/* ---------- Sezioni ---------- */
section[id], main { scroll-margin-top: 70px; }

/* Apertura */
.hero { background: var(--verde); color: var(--bianco); }
.hero__inner {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: calc(100vh - 62px);
}
.hero__media {
  flex: 1 1 440px;
  min-height: clamp(280px, 56vw, 560px);
  position: relative;
  overflow: hidden;
  background: var(--sabbia);
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 55%;
}
.hero__text {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 80px);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 7.6vw, 120px);
  line-height: 0.96;
  margin: 0 0 32px;
  letter-spacing: -0.015em;
  color: var(--bianco);
  text-wrap: balance;
}
.hero__lead {
  max-width: 540px;
  margin: 0 0 44px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--bianco);
  text-wrap: pretty;
}
.hero__lead strong { font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.btn--primary { background: var(--terracotta); color: var(--bianco); border: 1px solid var(--terracotta); }
.btn--primary:hover { background: var(--terracotta-scuro); border-color: var(--terracotta-scuro); color: var(--bianco); }
.btn--ghost { background: transparent; color: var(--bianco); border: 1px solid var(--bianco); }
.btn--ghost:hover { background: var(--bianco); color: var(--verde); }

/* Chi è GDS */
.chi { background: var(--sabbia); }
.chi__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.chi .h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.chi__quote {
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.3;
  color: var(--verde);
  text-wrap: pretty;
}
.chi__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 17px;
  padding-top: clamp(0px, 1vw, 8px);
  text-wrap: pretty;
}

/* Storia */
.storia { background: var(--crema); }
.storia__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 100px);
}
.storia .h2 { margin-bottom: 32px; }
.storia__intro {
  max-width: 680px;
  font-size: 17px;
  text-wrap: pretty;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sabbia); }
.timeline__item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(8px, 3vw, 48px);
  padding: clamp(28px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--sabbia);
}
.timeline__year {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  color: var(--terracotta);
}
.timeline__label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--verde);
}
.timeline__body {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}
.timeline__body p { font-size: 17px; max-width: 620px; text-wrap: pretty; }
.timeline__logo { width: min(280px, 60%); height: auto; }

.archive { max-width: 720px; }
.archive__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 10px;
  align-items: start;
}
.archive__col { display: flex; flex-direction: column; gap: 10px; }
.archive__frame { border: 1px solid var(--sabbia); padding: 6px; background: var(--crema); }
.archive__frame img { width: 100%; height: auto; }
.archive .caption { margin-top: 14px; color: var(--verde); }

.storia__closing {
  margin: clamp(56px, 8vw, 96px) auto 0;
  max-width: 760px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.25;
  color: var(--verde);
  text-wrap: balance;
}

/* Dentro il logo */
.logo-sec { background: var(--terracotta); color: var(--bianco); }
.logo-sec__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.logo-sec__card {
  justify-self: center;
  width: 100%;
  max-width: 500px;
  background: var(--crema);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 32px);
}
.logo-sec__card img { width: 100%; height: auto; }
.logo-sec .kicker { color: var(--bianco); }
.logo-sec__text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.45;
  color: var(--bianco);
  text-wrap: pretty;
}

/* Fascia materiali */
.band { height: min(40vh, 56.25vw); min-height: 200px; overflow: hidden; background: var(--sabbia); }
.band img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }

/* Valori */
.valori { background: var(--crema); }
.valori__head {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 48px) clamp(40px, 5vw, 64px);
}
.valori .h2 { margin-bottom: 24px; max-width: 760px; }
.valori__intro { max-width: 620px; font-size: 17px; text-wrap: pretty; }
.valori__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(72px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}
.card {
  border-radius: 24px;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 3.5vw, 56px);
  min-height: clamp(360px, 36vw, 520px);
  display: flex;
  flex-direction: column;
}
.card--verde { background: var(--verde); color: var(--bianco); }
.card--sabbia { background: var(--sabbia); color: var(--nero); }
.card--terracotta { background: var(--terracotta); color: var(--bianco); }
.card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: auto;
  padding-bottom: 48px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
  margin: 0 0 20px;
}
.card p { font-size: 16px; text-wrap: pretty; }

/* Attività */
.attivita { background: var(--sabbia); }
.attivita__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 48px);
}
.attivita .h2 { margin-bottom: 24px; max-width: 760px; }
.attivita__intro { margin: 0 0 clamp(48px, 7vw, 88px); max-width: 640px; font-size: 17px; text-wrap: pretty; }
.attivita__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(56px, 6vw, 80px) clamp(32px, 4vw, 64px);
}
.biz { display: flex; flex-direction: column; }
.biz__photo { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.biz__figure { margin-bottom: 32px; }
.biz__figure .caption { margin-top: 10px; color: var(--verde-scuro); }
.biz > picture > .biz__photo { margin-bottom: 32px; }
.biz__since {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 10px;
}
.biz h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.05;
  margin: 0 0 14px;
}
.biz__desc { margin: 0 0 28px; font-size: 17px; max-width: 480px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
  background: var(--crema);
  color: var(--nero);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.chip:hover { background: var(--bianco); color: var(--terracotta); }

/* Contatti */
.contatti { background: var(--verde); color: var(--bianco); }
.contatti__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(56px, 7vw, 112px);
}
.contatti .h2 { margin-bottom: 28px; color: var(--bianco); }
.contatti__intro { margin: 0 0 clamp(40px, 5vw, 64px); font-size: 17px; max-width: 480px; text-wrap: pretty; }
.contatti__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contatti__label--ig { letter-spacing: 0.22em; margin-bottom: 16px; }
.contatti__ig-text { margin: 0 0 28px; font-size: 17px; max-width: 460px; }

.mail-big {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.3em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.2;
  color: var(--bianco);
  text-decoration: none;
  max-width: 100%;
  background-image: linear-gradient(#FFFFFF, #FFFFFF), linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
  background-repeat: no-repeat;
  background-position: left bottom, left bottom;
  background-size: 0% 1px, 100% 1px;
  padding-bottom: 6px;
  transition: background-size 0.45s ease;
}
.mail-big:hover { color: var(--bianco); background-size: 100% 1px, 100% 1px; }
.mail-big__addr { overflow-wrap: anywhere; min-width: 0; }
.mail-big__arrow { font-family: Montserrat, sans-serif; font-weight: 400; font-size: 0.6em; white-space: nowrap; }

.ig-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-bottom: 28px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.ig-strip__item {
  flex: 1 0 0;
  min-width: 66%;
  scroll-snap-align: start;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--verde-ig);
}
.ig-strip__item:hover { opacity: 0.88; }
.ig-strip__item img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 900px) {
  .ig-strip__item { min-width: 0; }
}
.contatti__follow { display: flex; }
.contatti__follow .chip { padding: 0 26px; }

/* Pagina 404 */
.notfound { background: var(--verde); color: var(--bianco); }
.notfound__inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 68px - 93px);
  padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.notfound .kicker { color: var(--bianco); }
.notfound h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.notfound__text { max-width: 540px; margin: 0 0 44px; font-size: clamp(16px, 1.5vw, 18px); }

/* Pagina privacy */
.legal { background: var(--crema); }
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 4vw, 48px) clamp(72px, 10vw, 140px);
  font-size: 17px;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 16px;
  text-wrap: balance;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
  color: var(--verde);
  margin: 48px 0 14px;
}
.legal p { margin: 0 0 14px; text-wrap: pretty; }
.legal__updated { font-size: 13px; color: var(--verde); margin-bottom: 36px !important; }
.legal__back { margin-top: 48px !important; }

/* Footer */
.site-footer { background: var(--verde-scuro); color: var(--bianco); font-size: 13px; line-height: 1.6; }
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
}
.site-footer__brand { font-weight: 600; }
.site-footer a { color: var(--bianco); }
.site-footer a:hover { color: var(--sabbia); }
