/* ============================================================
   arieni.it — foglio di stile condiviso da tutte le lingue.
   Modificando questo file cambia la grafica di tutte e 5 le pagine.
   ============================================================ */

:root {
  --bg: #F7F2EA;
  --bg-alt: #EFE7DA;
  --ink: #1A1613;
  --ink-soft: #5C524A;
  --ink-faint: #9A8F83;
  --brass: #A67C3A;
  --brass-soft: #C9A971;
  --line: #E2D7C5;
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brass); color: var(--bg); }

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
}

/* ---------- decorative elements ---------- */
.hairline {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

.brass-line {
  width: 48px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
  vertical-align: middle;
  margin-right: 14px;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- nav ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease;
}
nav.scrolled { border-bottom-color: var(--line); }

nav .brand {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 50, "opsz" 14;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
nav .brand em {
  font-style: italic;
  color: var(--brass);
  font-variation-settings: "SOFT" 100, "opsz" 14;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
nav ul a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
}
nav ul a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width .35s ease;
}
nav ul a:hover { color: var(--ink); }
nav ul a:hover::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 720px) {
  nav ul { display: none; }
}

/* ---------- selettore lingua ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}
.lang-switch a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: relative;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--brass); }
.lang-switch a:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -0.58rem;
  color: var(--ink-faint);
  opacity: 0.45;
  letter-spacing: 0;
}

@media (max-width: 420px) {
  .lang-switch { gap: 0.65rem; }
  .lang-switch a { font-size: 0.68rem; letter-spacing: 0.1em; }
  .lang-switch a:not(:last-child)::after { right: -0.42rem; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  padding: 7rem var(--pad) 4rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-inner { position: relative; }

.hero .eyebrow {
  display: block;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: rise .9s .2s ease-out forwards;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-weight: 340;
  font-size: clamp(3.4rem, 11vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  opacity: 0;
  animation: rise 1.1s .35s ease-out forwards;
}
.hero h1 .first {
  display: block;
  font-size: 0.45em;
  font-weight: 300;
  font-variation-settings: "SOFT" 60, "opsz" 48;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
  padding-left: 0.35em;
}
.hero h1 .last {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 300;
  color: var(--brass);
}

.hero .tagline {
  margin-top: 2.8rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: "SOFT" 90, "opsz" 36;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: rise 1s .7s ease-out forwards;
}
.hero .tagline::before {
  content: '';
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 1rem;
  transform: translateY(-0.2em);
}

/* traduzione della frase di marca, sotto l'originale italiano.
   Il rientro di 3.2rem allinea la riga al testo sopra (2.2rem di
   trattino + 1rem di margine del ::before). */
.hero .tagline .tagline-tr {
  display: block;
  margin-top: 0.35rem;
  margin-left: 3.2rem;
  font-size: clamp(0.92rem, 1.15vw, 1.12rem);
  font-variation-settings: "SOFT" 90, "opsz" 18;
  color: var(--ink-soft);
  letter-spacing: 0;
}
@media (max-width: 560px) {
  .hero .tagline .tagline-tr { margin-left: 3.2rem; }
}

.hero .sub {
  margin-top: 1.4rem;
  max-width: 32ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.5;
  opacity: 0;
  animation: rise 1s .9s ease-out forwards;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 0;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: rise 1s 1.2s ease-out forwards;
}

/* decorative handle SVG in hero */
.hero-handle {
  position: absolute;
  top: 50%;
  right: -4rem;
  transform: translateY(-50%);
  width: 260px;
  opacity: 0;
  animation: fadeIn 2s 1s ease-out forwards;
  pointer-events: none;
}
@media (max-width: 900px) { .hero-handle { display: none; } }

/* ---------- sections ---------- */
section {
  padding: 7rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section-alt .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: baseline;
}
@media (max-width: 720px) {
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
}

.section-header .label {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 0.7rem;
  position: relative;
}
.section-header .label::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 1px;
  background: var(--brass);
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "opsz" 96;
  font-weight: 340;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.section-header h2 em {
  font-style: italic;
  color: var(--brass);
  font-variation-settings: "SOFT" 100, "opsz" 96, "wght" 300;
}

/* ---------- story ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; gap: 2.5rem; }
}

.story p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.story p:last-child { margin-bottom: 0; }
.story p.lead {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 80, "opsz" 24;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 2rem;
}
.story .signature {
  margin-top: 2.5rem;
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "opsz" 36, "wght" 300;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--brass);
}

/* ---------- proposte (brands) ---------- */
.brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
  .brands { grid-template-columns: 1fr; }
}

.brand-card {
  padding: 3.5rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .5s ease;
}
.brand-card:first-child { border-right: 1px solid var(--line); }
@media (max-width: 820px) {
  .brand-card:first-child { border-right: none; }
}
.brand-card:hover { background: rgba(166, 124, 58, 0.04); }

.brand-card .num {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 50, "opsz" 48;
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
  margin-bottom: 2rem;
  display: block;
}

.brand-card .tipo {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.8rem;
}

.brand-card h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 96;
  font-weight: 340;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.brand-card h3 em {
  font-style: italic;
  color: var(--brass);
  font-variation-settings: "SOFT" 100, "opsz" 96, "wght" 300;
}

.brand-card p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40ch;
}

.brand-card .where {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- servizi ---------- */
.servizi-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.servizio {
  background: var(--bg-alt);
  padding: 2.5rem 2rem;
  transition: background .4s ease;
}
.servizio:hover { background: var(--bg); }

.servizio .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--brass);
  border-radius: 50%;
  margin-bottom: 1.4rem;
}

.servizio h4 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 50, "opsz" 36;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.servizio p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- a chi ---------- */
.clienti-wrap {
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}
.clienti-wrap::before,
.clienti-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 15%;
  z-index: 2;
  pointer-events: none;
}
.clienti-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt), transparent);
}
.clienti-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt), transparent);
}

.clienti-track {
  display: flex;
  gap: 3rem;
  animation: scroll 40s linear infinite;
  width: max-content;
}

.clienti-track span {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "opsz" 96;
  font-weight: 340;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.clienti-track span:nth-child(even) {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 96, "wght" 300;
  color: var(--brass);
}

.clienti-track span::after {
  content: '·';
  margin-left: 3rem;
  color: var(--brass);
  font-style: normal;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- territorio ---------- */
.territory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 820px) {
  .territory { grid-template-columns: 1fr; gap: 2.5rem; }
}

.territory-text h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "opsz" 72;
  font-weight: 340;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.territory-text h3 em {
  font-style: italic;
  color: var(--brass);
  font-variation-settings: "SOFT" 100, "opsz" 72, "wght" 300;
}
.territory-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.province-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}
.province-list li {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 60, "opsz" 24;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
}

.address-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2.8rem 2.5rem;
  position: relative;
}
.address-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 2px;
  background: var(--brass);
}

.address-card .label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.8rem;
  display: block;
}

.address-card address {
  font-style: normal;
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "opsz" 24;
  font-weight: 340;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink);
}
.address-card address .street { display: block; }
.address-card address .city {
  display: block;
  font-style: italic;
  color: var(--brass);
  margin-top: 0.3rem;
  font-variation-settings: "SOFT" 100, "opsz" 24, "wght" 300;
}

/* ---------- contatti ---------- */
.contatti-block {
  padding: 8rem var(--pad);
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}

.contatti-block h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  font-weight: 340;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.contatti-block h2 em {
  font-style: italic;
  color: var(--brass);
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 300;
}

.contatti-block > p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: "SOFT" 90, "opsz" 24;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 4rem;
}

.contatti-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.contatti-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: padding .4s ease;
  text-align: left;
}
.contatti-list a:hover { padding-left: 1.5rem; padding-right: 0; }

.contatti-list .type {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-shrink: 0;
  width: 130px;
}

.contatti-list .value {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "opsz" 36;
  font-weight: 340;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--ink);
  flex: 1;
  padding-left: 1.5rem;
  letter-spacing: -0.01em;
}

.contatti-list .arrow {
  color: var(--brass);
  font-size: 1.2rem;
  transition: transform .35s ease;
  flex-shrink: 0;
}
.contatti-list a:hover .arrow { transform: translateX(8px); }

@media (max-width: 560px) {
  .contatti-list a { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .contatti-list .value { padding-left: 0; }
  .contatti-list .arrow { align-self: flex-end; margin-top: -1.5rem; }
}

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 4rem var(--pad) 2.5rem;
}

footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

footer .mark {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  font-weight: 340;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
footer .mark em {
  font-style: italic;
  color: var(--brass-soft);
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 300;
}

footer .meta {
  text-align: right;
  font-size: 0.82rem;
  color: var(--brass-soft);
  line-height: 1.8;
  letter-spacing: 0.05em;
}
footer .meta .tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: "SOFT" 90, "opsz" 18;
  font-size: 1.05rem;
  color: var(--bg);
  display: block;
  margin-bottom: 0.3rem;
}
footer .meta .tagline .tagline-tr {
  display: block;
  font-size: 0.82rem;
  color: var(--brass-soft);
  line-height: 1.5;
}

@media (max-width: 560px) {
  footer .inner { flex-direction: column; align-items: flex-start; }
  footer .meta { text-align: left; }
}

/* ---------- banner suggerimento lingua ---------- */
/* In basso a SINISTRA: in alto c'è la nav fissa, in basso a destra
   c'è già .scroll-hint dell'hero. */
.lang-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 200;
  display: none;
  align-items: center;
  gap: 1rem;
  max-width: calc(100vw - 2.5rem);
  padding: 0.8rem 0.9rem 0.8rem 1.15rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(26, 22, 19, 0.10);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.lang-banner.show { display: flex; }
.lang-banner.in { opacity: 1; transform: translateY(0); }

.lang-banner a {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}
.lang-banner a:hover { color: var(--brass); }

.lang-banner button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-faint);
  padding: 0.25rem 0.35rem;
  flex-shrink: 0;
  transition: color .3s ease;
}
.lang-banner button:hover { color: var(--ink); }

@media (max-width: 560px) {
  .lang-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* ---------- animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
