/* ════════════════════════════════════════════════════════
   La Corte del Balì — Pagina statica "in costruzione"
   Studio PluraleCom · brand identity v2
   Layout: header logo + main 2col + footer chiaro
   ════════════════════════════════════════════════════════ */

/* ── Brand tokens ── */
:root {
  /* Dark palette (main) */
  --night:       #08131F;
  --deep:        #0D1E2F;
  --petrol:      #1C526E;
  --steel:       #2C7A9A;
  --cream:       #E8E0CC;
  --ivory:       #F0EAD8;
  --gold:        #C9A46A;
  --gold-light:  #E0C08A;
  --muted:       #7A9BAE;
  --faint:       #1E3347;

  /* Light palette (footer) */
  --sand:        #F5EFE3;
  --sand-mid:    #E8DFD0;
  --petrol-dark: #143D52;
  --text-light:  #2A4A5E;
  --text-mid:    #4A6E80;

  /* Typography */
  --font-display: 'Cormorant', serif;
  --font-body:    'Cormorant Garamond', serif;

  /* Spacing */
  --gutter: clamp(2rem, 5vw, 5rem);

  --ease: 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/*    STARFIELD */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.starfield canvas { width: 100%; height: 100%; display: block; }

/* WRAPPER */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER — logo top-left */
.site-header {
  padding: clamp(1.6rem, 3vw, 2.6rem) var(--gutter);
  animation: fadeDown 1.4s 0.1s ease both;
  opacity: 0;
}

.site-header .logo img {
  width: clamp(180px, 28vw, 320px);
  height: auto;
}

/* MAIN */
.site-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 0;
}

/* ── Colonna sinistra: foto ── */
.col-photo {
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.8s 0.4s ease both;
  opacity: 0;
}

.col-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Gradient di raccordo a destra — sfuma verso il nero */
.col-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
  linear-gradient(to right, transparent 55%, var(--night) 100%),
  linear-gradient(to top,   transparent 55%, var(--night) 100%);
  pointer-events: none;
}

/* ── Colonna destra: testo ── */
.col-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 5rem) 2.5rem;
  animation: fadeUp 1.6s 0.6s ease both;
  opacity: 0;
}

.label-eyebrow {
  font-family: var(--font-body);
  font-size: 0.90rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
}

.ornament-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.8rem;
  opacity: 0.7;
}

.headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--gold);
  line-height: 1.18;
  margin-bottom: 1.6rem;
}

.tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}
.tagline strong {
  color: var(--muted);
  font-weight: 600;
}

.museo-note {
  display: block;
  margin-top: 1.4rem;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.5;
}

.ornament-line--bottom {
  width: 100%;
  background: var(--faint);
  margin-top: 2.4rem;
}

/* FOOTER */
.site-footer {
  position: relative;
  background-color: var(--sand);
  overflow: hidden;
  animation: fadeIn 1.8s 1s ease both;
}
 
/* ── Pattern floreale (bianco tenue su beige: opacity 0.55 lo rende visibile) ── */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/sfondo-footer.webp');
  background-size: cover;
  background-position: center 20%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
 
/* ── Filetto dorato di separazione ── */
.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}
 
/* ── Griglia interna: logo | contatti | social ── */
.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem 3rem;
  padding: 2.5rem;
}
 
/* ── Logo ── */
.footer-logo img {
  display: block;
  width: clamp(225px, 25vw, 250px);
  height: auto;
}
 
/* ── Contatti ──
   font-style: normal annulla il corsivo default di <address>  */
.footer-contact {
  font-style: normal;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  color: var(--petrol);
  line-height: 2;
  letter-spacing: 0.04em;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
}
 
.footer-contact a {
  color: var(--petrol);
  text-decoration: none;
  transition: color 0.25s ease;
}
 
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--petrol-dark);
  text-decoration: underline;
}
 
/* ── Social: icone SVG ── */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}
 
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--petrol);
  opacity: 0.7;
  transition: color 0.25s ease, opacity 0.25s ease;
}
 
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--petrol-dark);
  opacity: 1;
}
 
/* ── Barra copyright ── */
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem var(--gutter);
  border-top: 1px solid rgba(20, 61, 82, 0.18);
  border-top: 1px solid color-mix(in srgb, var(--petrol) 18%, transparent);
  font-size: 0.78rem;
  color: var(--petrol);
  letter-spacing: 0.03em;
}
 
/* ── Firma webagency ── */
.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
 
.footer-credit img {
  display: block;
  height: 22px;
  width: auto;
}
 
.footer-credit a {
  display: flex;
  align-items: center;
}

/* ANIMATIONS */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0);     }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 0.5fr;
    text-align: center;
    gap: 1.75rem;
  }

  .footer-logo,
  .footer-social {
    justify-self: center;
  }
 
  .footer-social {
    flex-direction: row;
    gap: 1.5rem;
  }
 
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}
@media (max-width: 900px) {
  .site-header {
    display: flex;
    justify-content: center;
    text-align: center;
  }
  .site-main {
    grid-template-columns: 1fr;
  }

  .col-photo {
    height: 50vw;
    min-height: 280px;
    max-height: 420px;
  }

  .col-photo::after {
    background: linear-gradient(
      to bottom,
      transparent 60%,
      var(--night) 100%
    );
  }

  .col-text {
    padding: 2.5rem var(--gutter);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.6rem;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-header .logo img {
    width: clamp(150px, 55vw, 220px);
  }
  .headline {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }
}

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


 