/* IMPORTAZIONE FONT */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #53665d;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

/* COLORI PRINCIPALI */
:root {
  --verde-scuro: #263c34;
  --verde-medio: #53665d;
  --verde-chiaro: #7d9489;
  --crema: #ede7d8;
  --bianco: #ffffff;
  --oro: #d8b978;
  --ombra: rgba(0, 0, 0, 0.25);
}

/* TESTI */
h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--bianco);
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

h2 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
}

/* HEADER E MENU */
header {
  min-height: 82px;
  background-color: rgba(38, 60, 52, 0.96);
  border-bottom: 1px solid rgba(216, 185, 120, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 7%;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.logo {
  color: var(--bianco);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 0.9;
  text-decoration: none;
}

.logo span {
  display: block;
  color: var(--oro);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-top: 7px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

nav a {
  color: var(--bianco);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.attivo {
  color: var(--oro);
}

/* PULSANTI */
.btn {
  display: inline-block;
  background-color: var(--oro);
  border: 1px solid var(--oro);
  border-radius: 4px;
  color: var(--verde-scuro);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 25px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: transparent;
  color: var(--bianco);
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--bianco);
  border-color: var(--bianco);
}

.btn-outline:hover {
  background-color: var(--bianco);
  color: var(--verde-scuro);
}

/* HERO HOME */
.hero {
  align-items: center;
  background:
    linear-gradient(rgba(26, 46, 38, 0.66), rgba(210, 228, 221, 0.78)),
    url("gallery/logo.jpg")
    center/cover;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 82px);
  padding: 70px 7%;
  text-align: center;
}

.hero-content {
  max-width: 900px;
}

.eyebrow {
  color: var(--oro);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 24px auto 33px;
  max-width: 680px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* SEZIONI */
.sezione {
  padding: 90px 7%;
}

.sezione-intro {
  margin: 0 auto 45px;
  max-width: 750px;
  text-align: center;
}

.sezione-intro p {
  color: var(--crema);
}

.sfondo-scuro {
  background-color: var(--verde-scuro);
}

.sfondo-chiaro {
  background-color: var(--verde-chiaro);
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
  color: #a99045;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}


/* =========================================================
   EVENTO PRINCIPALE
   ========================================================= */

.evento-principale {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 35px;
  background: #ffffff;
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 50px;
  box-shadow: 0 18px 45px rgba(24, 59, 50, 0.13);
}


/* =========================================================
   IMMAGINE EVENTO
   ========================================================= */

.evento-immagine {
  width: 100%;
  text-align: center;
}

.evento-immagine img {
  width: 100%;
  max-width: 600px;
  height: 390px;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.evento-immagine img:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   CONTENUTO EVENTO
   ========================================================= */

.evento-contenuto {
  padding: 10px 10px 10px 0;
}

.evento-etichetta {
  color: #a99045;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
}

.evento-contenuto h2 {
  color: #183b32;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 120px;
}

.evento-contenuto p:not(.evento-etichetta) {
  color: #4c4c45;
  font-size: 1.05rem;
  margin-bottom: 28px;
}


/* =========================================================
   GRIGLIA EVENTI
   ========================================================= */

.griglia {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}


/* =========================================================
   CARD
   ========================================================= */

.card {
  position: relative;

  width: 100%;
  min-height: 330px;

  padding: 60px 20px;

  background:
  linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
  url("gallery/menupiante.jpeg") center/cover;

  border-radius: 12px;

  color: #ffffff;

  text-align: center;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  overflow: hidden;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}


/* =========================================================
   HOVER GENERALE CARD
   ========================================================= */

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   LINK DELLA CARD
   ========================================================= */

.evento-card-link {
  display: block;

  color: inherit;

  text-decoration: none !important;
}

.evento-card-link:hover {
  color: inherit;
  text-decoration: none !important;
}

.evento-card-link .evento-card {
  cursor: pointer;
}


/* =========================================================
   CARD PROSSIMI APPUNTAMENTI
   ========================================================= */

.prossimi-eventi {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}


/* =========================================================
   ANTEPRIMA IMMAGINE
   ========================================================= */

.anteprima-evento {
  position: absolute;

  left: 50%;
  bottom: 15px;

  width: 85%;
  height: 150px;

  transform: translate(-50%, 120%);

  opacity: 0;

  border-radius: 10px;

  overflow: hidden;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.45s ease,
    opacity 0.45s ease;

  z-index: 3;
}


/* =========================================================
   IMMAGINE ANTEPRIMA
   ========================================================= */

.anteprima-evento img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


/* =========================================================
   PASSAGGIO DEL MOUSE
   ========================================================= */

.prossimi-eventi:hover .anteprima-evento {
  transform: translate(-50%, 0);
  opacity: 1;
}


/* =========================================================
   TESTO DELLA CARD SOPRA L'IMMAGINE
   ========================================================= */

.prossimi-eventi .icona,
.prossimi-eventi h3,
.prossimi-eventi p {
  position: relative;
  z-index: 4;
}


/* =========================================================
   ICONA
   ========================================================= */

.prossimi-eventi .icona {
  color: #d9c98c;
}


/* =========================================================
   TITOLO
   ========================================================= */

.prossimi-eventi h3 {
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 12px;
}


/* =========================================================
   TESTO
   ========================================================= */

.prossimi-eventi p {
  color: #ffffff;
  font-size: 0.98rem;
}


/* =========================================================
   EFFETTO HOVER
   ========================================================= */

.prossimi-eventi:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .griglia {
    max-width: 100%;
  }

  .card {
    min-height: 300px;
    padding: 50px 20px;
  }

  .anteprima-evento {
    width: 90%;
    height: 135px;
  }

}
