/* ==========================================================================
   Don Peppe Home — Coming Soon
   Palette: blu profondo + oro
   ========================================================================== */

:root {
  --blue-deep: #0b1f3a;
  --blue-mid: #1a3a5c;
  --blue-soft: #243f5e;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --gold-muted: rgba(201, 162, 39, 0.35);
  --text-primary: #f4f6f9;
  --text-muted: #b8c4d4;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 12px;
  --max-width: 42rem;
  --focus-ring: 2px solid var(--gold-light);
  --focus-offset: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--blue-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--blue-mid) 0%, transparent 55%),
    linear-gradient(165deg, var(--blue-deep) 0%, #071525 100%);
}

/* Focus accessibile su tutti gli elementi interattivi */
a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  overflow-x: hidden;
}

.page__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, var(--gold-muted) 0%, transparent 45%);
  opacity: 0.6;
}

/* Card contenuto principale */
.header,
.main,
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

/* Animazione ingresso leggera (solo CSS) */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header,
.hero,
.contact,
.footer {
  animation: fadeUp 0.8s ease-out backwards;
}

.hero {
  animation-delay: 0.1s;
}

.contact {
  animation-delay: 0.2s;
}

.footer {
  animation-delay: 0.3s;
}

/* Header / brand */
.header {
  text-align: center;
}

.header__eyebrow {
  margin: 0 0 var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-light) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header__rule {
  width: 4rem;
  height: 2px;
  margin: var(--space-md) auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Hero */
.hero,
.contact {
  padding: var(--space-lg);
  background: rgba(26, 58, 92, 0.45);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.hero__heading {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  color: var(--gold-light);
  text-align: center;
}

.hero__lead {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  text-align: center;
  max-width: 36ch;
  margin-inline: auto;
}

/* Contatti */
.contact__heading {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.contact__item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.contact__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  border-radius: 50%;
}

.contact__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.contact__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__link {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.125rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  /* Email e telefono su una riga (evita spezzature tipo "…home.i" / "t") */
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.contact__link:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
}

.contact__link--address {
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Footer */
.footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  text-align: center;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__vat {
  margin: var(--space-xs) 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Mobile: meno rientro e più spazio per email/telefono su una riga */
@media (max-width: 639px) {
  .page {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .hero {
    padding: var(--space-md);
  }

  .contact {
    padding: var(--space-md) var(--space-sm);
  }

  .contact__list {
    gap: var(--space-sm);
  }

  .contact__item {
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
  }

  .contact__icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .contact__icon svg {
    width: 20px;
    height: 20px;
  }

  /* min-width: 0 nel flex comprimeva il testo e rompeva nowrap */
  .contact__body {
    min-width: auto;
    flex: 1 1 auto;
  }

  .contact__link:not(.contact__link--address) {
    font-size: clamp(0.8125rem, 3.6vw, 1rem);
  }
}

/* Tablet e desktop */
@media (min-width: 640px) {
  .page {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    justify-content: center;
  }

  .contact__list {
    gap: var(--space-sm);
  }

  .contact__item {
    padding: var(--space-md);
  }
}

/* Riduzione movimento per accessibilità */
@media (prefers-reduced-motion: reduce) {
  .header,
  .hero,
  .contact,
  .footer {
    animation: none;
  }

  .contact__item {
    transition: none;
  }
}
