@font-face {
  font-family: "Biro Script Plus";
  src: url("../fonts/BiroScriptPlus.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --header-bg: #0b0a09;
  --gold: #e0a73c;
  --gold-light: #ffe59a;
  --text: #eef2f6;
  --muted: #9aa4b2;
  --max-width: 1100px;

  /* font base (testo normale) */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

* {
  box-sizing: border-box;
}

/* SFONDO UNIFORME NERO */
body {
  margin: 0;
  color: var(--text);
  line-height: 1.4;
  background-color: #000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

/* LOGO */
.brand .logo-wrap {
  display: inline-block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  background: transparent;
  margin-left: 12px;
}

@media (max-width: 900px) {
  .brand .logo-wrap {
    margin-left: 8px;
  }
}
@media (max-width: 480px) {
  .brand .logo-wrap {
    margin-left: 6px;
  }
}

.brand .logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.menu {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  align-items: center;
  white-space: nowrap;
  align-self: center;
}

/* Menu + icone */
.menu a,
.social-icon .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.16s ease, transform 0.14s cubic-bezier(0.2, 0.9, 0.3, 1),
    text-shadow 0.14s ease, box-shadow 0.14s ease;
  will-change: color, transform, text-shadow, box-shadow;
  text-decoration: none;
}

/* Voci menu */
.menu a {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  opacity: 0.98;
  text-shadow: 0 0 6px rgba(224, 167, 80, 0.12);
}

.social-icon .icon-link {
  color: var(--gold);
  width: 40px;
  height: 40px;
  padding: 6px;
}

/* Hover */
.menu a:hover,
.menu a:focus,
.social-icon .icon-link:hover,
.social-icon .icon-link:focus {
  color: var(--gold-light);
  transform: translateY(-3px) scale(1.035);
  text-shadow: 0 0 10px rgba(224, 167, 80, 0.85),
    0 0 26px rgba(255, 214, 140, 0.35), 0 10px 40px rgba(224, 167, 80, 0.12);
  outline: none;
  z-index: 40;
}

/* Barra luminosa */
.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2px;
  width: 64%;
  height: 3px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0;
}

.menu a:hover::after,
.menu a:focus::after {
  background: linear-gradient(
    90deg,
    rgba(255, 232, 165, 0.98),
    rgba(224, 167, 80, 0.98)
  );
  box-shadow: 0 12px 34px rgba(224, 167, 80, 0.18);
  transform: translateX(-50%) scaleX(1.18);
  opacity: 1;
}

/* SVG icone */
.social-icon .icon-link svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: filter 0.14s ease;
}

.social-icon .icon-link:hover svg,
.social-icon .icon-link:focus svg {
  filter: drop-shadow(0 0 16px rgba(224, 167, 80, 0.7));
}

/* Layout base */
.hero {
  padding: 80px 18px 60px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.lead {
  color: var(--muted);
  margin: 0 0 18px;
}

.section {
  padding: 40px 0;
}

.storia-logo {
  height: 160px;
  margin-top: 18px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

.site-footer {
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .menu {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav.open .menu {
    display: flex;
    position: absolute;
    right: 12px;
    top: 64px;
    background: var(--header-bg);
    padding: 12px;
    border-radius: 8px;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 90;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .menu a,
  .menu a::after,
  .social-icon .icon-link {
    transition: none !important;
    transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
}

/* ===== HOME: titolo e sottotitolo centrali ===== */
.hero-center {
  text-align: center;
}

/* TITOLI: uso Biro Script Plus + colore oro */
.slogan,
.subtitle,
.preview-text h2 {
  font-family: "Biro Script Plus", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial;
  color: var(--gold);
}

/* Titolo principale (più grande su PC) */
.slogan {
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1.05;
  font-weight: 400; /* il font script spesso rende meglio così */
}

/* Sottotitolo */
.subtitle {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 400;
  opacity: 0.95;
}

/* ===== HOME – sezioni anteprima ===== */
.preview {
  padding: 70px 0;
}

.preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.preview.reverse .preview-inner {
  direction: rtl;
}

.preview.reverse .preview-text {
  direction: ltr;
}

.preview-text h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 12px;
}

.preview-text p {
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 20px;
}

.preview-media img {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Bottone */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  color: #000;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(224, 167, 80, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(224, 167, 80, 0.55);
}

/* Mobile preview */
@media (max-width: 800px) {
  .preview-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .preview-media img {
    max-width: 100%;
  }
}
