/* ============================================================
   Iris Osiris — design system
   Font: Raleway (self-hosted, da Google Fonts)
   ============================================================ */

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/Raleway-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/Raleway-italic.woff2') format('woff2');
}
/* Font di visualizzazione: usato per il nome dell'artista in home.
   Richiede il file assets/fonts/Cinzel-Medium.ttf */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Cinzel-Medium.ttf') format('truetype');
}

:root {
  --bg: #F4F0E8;          /* Avorio caldo - sfondo generale */
  --bg-alt: #E5D4CE;      /* Beige rosato - sezioni alternate */
  --dark: #202A46;        /* Blu notte - hero, footer, sezioni importanti */
  --sage: #999B37;        /* Verde salvia - workshop, corsi, elementi naturali */
  --heading: #202A46;     /* Blu notte - titoli */
  --text: #383838;        /* Grigio antracite - paragrafi */
  --text-on-dark: #F4F0E8;/* Avorio - testi su fondo scuro */
  --accent: #C47A52;      /* Terracotta/oro bruciato - CTA, link, dettagli */
  --accent-2: #B89A63;    /* Oro antico - icone, linee, dettagli */

  --font: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Cinzel', 'Times New Roman', Georgia, serif;
  --max-width: 1180px;

  /* ---- Luminosita del video di sfondo in home ----------------------------
     --video-dim       velo scuro uniforme sopra al video.
                       0 = video originale, 1 = schermo quasi nero.
                       Valori consigliati: 0.30 (video chiaro) - 0.65 (video molto chiaro).
     --video-vignette  scurimento aggiuntivo ai bordi (alto/basso), aiuta la
                       leggibilita di menu e titolo. 0 = disattivato.
     Per schiarire o scurire lo sfondo basta cambiare questi due numeri. */
  --video-dim: 0.45;
  --video-vignette: 0.35;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.4rem; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: var(--accent-2); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 34px 0 28px;
  position: relative;
  z-index: 10;
}
.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.site-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.site-title:hover { color: var(--accent-2); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 3.2vw, 34px);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--text-on-dark);
  font-size: clamp(0.6rem, 2.6vw, 0.92rem);
  letter-spacing: clamp(0.02em, 0.7vw, 0.12em);
  text-transform: uppercase;
  opacity: 0.85;
  padding-bottom: 4px;
  text-decoration: none;
  text-underline-offset: 6px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.site-nav a:hover {
  color: var(--accent-2);
  opacity: 1;
}
.site-nav a[aria-current="page"] {
  color: var(--accent-2);
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 1.5px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--dark);
  color: var(--text-on-dark);
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--text-on-dark);
  margin-bottom: 18px;
}
.hero-tagline {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-on-dark);
  opacity: 0.85;
  max-width: 40em;
  margin: 0 auto;
}

/* ---------- Buttons / CTA ---------- */

.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 30px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-top: 26px;
}
.btn:hover {
  background: var(--accent);
  color: var(--text-on-dark);
}
.btn-light {
  border-color: var(--accent-2);
  color: var(--text-on-dark);
}
.btn-light:hover {
  background: var(--accent-2);
  color: var(--dark);
}

/* ---------- Sections ---------- */

.section {
  padding: 90px 0;
}
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--text-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-sage { background: var(--sage); color: var(--text-on-dark); }
.section-sage h2, .section-sage h3 { color: var(--text-on-dark); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* ---------- Home: section-link cards ---------- */

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.nav-card {
  background: var(--bg);
  border: 1px solid var(--accent-2);
  padding: 40px 28px;
  text-align: center;
  color: var(--text);
}
.nav-card h3 {
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
}
.nav-card p { font-size: 0.98rem; color: var(--text); opacity: 0.85; }
.nav-card a.btn { margin-top: 18px; }

/* ---------- Gallery (Opere) ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(32,42,70,0.82), transparent);
  color: var(--text-on-dark);
  padding: 30px 16px 14px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

/* ---------- Eventi (news/workshop cards) ---------- */

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.event-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(32,42,70,0.15);
  align-items: start;
}
.event-date {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.event-date .day {
  display: block;
  font-size: 2.4rem;
  font-family: var(--font);
  color: var(--heading);
  line-height: 1;
  margin-bottom: 4px;
}
.event-tag {
  display: inline-block;
  background: var(--sage);
  color: var(--text-on-dark);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.event-item h3 { margin-bottom: 8px; }

/* ---------- Biografia ---------- */

.bio-layout {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 60px;
  align-items: start;
}
.bio-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-text h2 { text-align: left; }
.bio-signature {
  margin-top: 30px;
  font-style: italic;
  color: var(--accent);
  font-size: 1.3rem;
}

/* ---------- Contatti ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info dt {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 22px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { font-size: 1.15rem; color: var(--heading); }

.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--accent-2);
  background: var(--bg);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 30px 0 22px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-logo {
  width: clamp(26px, 4vw, 38px);
  height: auto;
  margin-bottom: 2px;
  opacity: 0.95;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.footer-contact {
  font-size: 0.78rem;
  color: var(--text-on-dark);
  opacity: 0.85;
}
.footer-contact a {
  color: var(--accent-2);
}
.footer-contact a:hover { color: var(--text-on-dark); }
.footer-legal {
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--text-on-dark);
  opacity: 0.7;
  margin-top: 6px;
  max-width: 100%;
}
.footer-note {
  font-size: 0.64rem;
  color: var(--text-on-dark);
  opacity: 0.5;
  letter-spacing: 0.03em;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .site-header { padding: 26px 0 22px; }
  .site-nav ul { gap: 14px 22px; }
  .bio-layout, .contact-layout { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 1fr; gap: 10px; }
  .section { padding: 60px 0; }
  .container { padding: 0 24px; }
}

/* Smartphone: voci di menu piu' grandi e leggibili, sempre su una riga */
@media (max-width: 600px) {
  .site-nav ul { gap: 12px; }
  .site-nav a {
    font-size: 0.84rem;
    letter-spacing: 0.05em;
  }
}

/* ============================================================
   HOME (index.html) — landing a tutto schermo con video
   ============================================================ */

.page-home {
  background: var(--dark);
  overflow-x: hidden;
}

.home {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
  background: var(--dark);
}
@supports (min-height: 100dvh) {
  .home { min-height: 100dvh; }
}

/* ---- Video di sfondo ---- */

.home-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* riempie sempre lo schermo, in verticale e in orizzontale */
  object-position: center;
  pointer-events: none;
}

/* Velo scuro regolabile (vedi --video-dim / --video-vignette in :root) */
.home-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(12, 16, 28, var(--video-vignette)) 0%,
      rgba(12, 16, 28, 0) 30%,
      rgba(12, 16, 28, 0) 68%,
      rgba(12, 16, 28, var(--video-vignette)) 100%),
    rgba(12, 16, 28, var(--video-dim));
}

/* ---- Logo + menu ---- */

.home-top {
  position: absolute;
  top: clamp(20px, 4.5vh, 46px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(100%, 820px);
  padding: 0 20px;
  text-align: center;
}

.home-logo {
  width: clamp(84px, 14vh, 168px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.45));
}

.home-nav {
  margin-top: clamp(12px, 2.2vh, 24px);
}
.home-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3.4vw, 40px);
}
.home-nav a {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(0.78rem, 2.2vw, 0.98rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F4F0E8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 3px rgba(0, 0, 0, 0.45);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.home-nav a:hover,
.home-nav a:focus-visible {
  color: #F4F0E8;
  border-bottom-color: var(--accent-2);
}
.home-nav a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 6px;
}

/* ---- Blocco centrale ---- */

.home-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 18em;
}

/* "Visioni Armoniche" + "Iris Osiris": entrambi in Cinzel-Medium */
.home-title,
.home-artist {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  color: #F4F0E8;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.7), 0 0 4px rgba(0, 0, 0, 0.4);
  margin: 0;
}

.home-title {
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0.06em;
}

.home-artist {
  font-size: clamp(1.5rem, 4.6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0.12em;
  margin-top: clamp(10px, 1.8vh, 22px);
}

/* ---- Ingresso in scena ---- */

@keyframes home-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes home-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* il blocco in alto e gia traslato in orizzontale: anima solo l'opacita */
.home-top { animation: home-fade 1.2s ease-out both; }
.home-center { animation: home-rise 1.1s ease-out 0.25s both; }

/* ---- Schermi molto bassi (telefono in orizzontale) ---- */

@media (max-height: 460px) {
  .home-logo { width: clamp(60px, 18vh, 96px); }
  .home-nav { margin-top: 8px; }
  .home-title { font-size: clamp(1.6rem, 5vw, 2.3rem); }
  .home-artist { font-size: clamp(1.1rem, 3.4vw, 1.5rem); margin-top: 8px; }
}

/* ---- Accessibilita: animazioni ridotte ---- */

@media (prefers-reduced-motion: reduce) {
  .home-top,
  .home-center { animation: none; }
  .home-nav a { transition: none; }
}
