:root {
  --primary: #c69c6d;
  --dark: #000000;
  --bg: #f7efe4;
  --white: #fffaf3;
  --text: #3f3328;
  --muted: #6b5a4a;
  --border: #e6d6c3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  max-width: 1400px; /* Aumentalo da 1100px a 1400px o più */
  margin: 0 auto;    /* Assicura che la testata rimanga centrata */
  width: 95%;
}

.brand-title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--dark);
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 85vh;
  background: url("../img/hero.jpg") center/cover no-repeat;
}

.hero-overlay {
  min-height: 85vh;
  background: rgba(90, 60, 35, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-center {
  text-align: center;
  color: var(--white);
}


.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-outline,
.btn-dark {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
}

.btn-primary,
.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

/* SEZIONI BASE */
.section {
  padding: 60px 0;
}

section {
  scroll-margin-top: 20px;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.3rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 30px;
}

/*Linea*/
.section:not(:last-of-type) {
  position: relative;
}

.section:not(:last-of-type):not(.cta)::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--primary);
  margin: 50px auto 0;
  opacity: 0.6;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .section:not(:last-of-type):not(.cta)::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary);
    margin: 40px auto 0;
    opacity: 0.6;
    border-radius: 2px;
  }
}
/**/

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-layout,
.cta-inner,
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card,
.about-box,
.cta-panel {
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.card h3,
.about-box-title,
.contact-label,
.cta h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--dark);
}

.card p,
.contact-value,
.notice,
.values-list li,
.section-subtitle {
  color: var(--muted);
}

.cta {
  background: #e2c39a;
}

.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 25px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 15px;
  }

  .grid-3,
  .about-layout,
  .cta-inner,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-overlay {
    min-height: calc(100dvh - 70px);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.chi-siamo-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.chi-siamo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.chi-siamo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.chi-siamo-gallery img:first-child {
  grid-column: span 2;
  height: 260px;
}

@media (max-width: 768px) {
  .chi-siamo-layout {
    grid-template-columns: 1fr;
  }

  .chi-siamo-gallery {
    grid-template-columns: 1fr;
  }

  .chi-siamo-gallery img:first-child {
    grid-column: span 1;
    height: 220px;
  }
}

.project-area {
  margin-top: 50px;
}

.area-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-family: "Cormorant Garamond", serif;
}

.area-description {
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.8;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 18px;
}

.project-text h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", serif;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 200px;
  }
}

.cta {
  background: #e8d2b5;
  padding: 70px 0;
}

.donation-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  padding: 35px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.donation-box h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-family: "Cormorant Garamond", serif;
}


.donation-item {
  margin-bottom: 22px;
}

.donation-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--dark);
}

.donation-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
}

@media (max-width: 768px) {
  .donation-box {
    padding: 28px 20px;
  }

  .donation-box h2 {
    font-size: 1.9rem;
  }

  .donation-value {
    font-size: 1.2rem;
  }
}


.nav-social {
  display: flex;
  gap: 15px;
  margin-left: 20px; /* Distanzia le icone dalle voci di menu */
  align-items: center;
}

.nav-social a {
  font-size: 1.2rem;
  color: var(--dark); /* Usa il colore nero definito nelle variabili */
  transition: color 0.3s ease;
}

.nav-social a:hover {
  color: var(--primary); /* Cambia colore al passaggio del mouse */
}

/* Gestione mobile */
@media (max-width: 768px) {
  .nav-social {
    margin-left: 0;
    margin-top: 15px;
    justify-content: flex-start;
  }
  
  .nav-social a {
    font-size: 1.5rem; /* Icone più grandi su mobile */
  }
}


/* Griglia Eventi */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.event-image img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.event-info {
  padding: 20px;
}

.event-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.event-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 15px;
}

.btn-small {
  display: inline-block;
  padding: 8px 15px;
  background: var(--dark);
  color: var(--white);
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: bold;
}:root {
  --primary: #c69c6d;
  --dark: #000000;
  --bg: #f7efe4;
  --white: #fffaf3;
  --text: #3f3328;
  --muted: #6b5a4a;
  --border: #e6d6c3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  max-width: 1400px; /* Aumentalo da 1100px a 1400px o più */
  margin: 0 auto;    /* Assicura che la testata rimanga centrata */
  width: 95%;
}

.brand-title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--dark);
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 85vh;
  background: url("../img/hero.jpg") center/cover no-repeat;
}

.hero-overlay {
  min-height: 85vh;
  background: rgba(90, 60, 35, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-center {
  text-align: center;
  color: var(--white);
}


.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-outline,
.btn-dark {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
}

.btn-primary,
.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

/* SEZIONI BASE */
.section {
  padding: 60px 0;
}

section {
  scroll-margin-top: 20px;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.3rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 30px;
}

/*Linea*/
.section:not(:last-of-type) {
  position: relative;
}

.section:not(:last-of-type):not(.cta)::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--primary);
  margin: 50px auto 0;
  opacity: 0.6;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .section:not(:last-of-type):not(.cta)::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary);
    margin: 40px auto 0;
    opacity: 0.6;
    border-radius: 2px;
  }
}
/**/

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-layout,
.cta-inner,
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card,
.about-box,
.cta-panel {
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--border);
}

.card h3,
.about-box-title,
.contact-label,
.cta h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--dark);
}

.card p,
.contact-value,
.notice,
.values-list li,
.section-subtitle {
  color: var(--muted);
}

.cta {
  background: #e2c39a;
}

.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 25px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 15px;
  }

  .grid-3,
  .about-layout,
  .cta-inner,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-overlay {
    min-height: calc(100dvh - 70px);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.chi-siamo-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.chi-siamo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.chi-siamo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.chi-siamo-gallery img:first-child {
  grid-column: span 2;
  height: 260px;
}

@media (max-width: 768px) {
  .chi-siamo-layout {
    grid-template-columns: 1fr;
  }

  .chi-siamo-gallery {
    grid-template-columns: 1fr;
  }

  .chi-siamo-gallery img:first-child {
    grid-column: span 1;
    height: 220px;
  }
}

.project-area {
  margin-top: 50px;
}

.area-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-family: "Cormorant Garamond", serif;
}

.area-description {
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.8;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 18px;
}

.project-text h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", serif;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 200px;
  }
}

.cta {
  background: #e8d2b5;
  padding: 70px 0;
}

.donation-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  padding: 35px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.donation-box h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-family: "Cormorant Garamond", serif;
}


.donation-item {
  margin-bottom: 22px;
}

.donation-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--dark);
}

.donation-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
}

@media (max-width: 768px) {
  .donation-box {
    padding: 28px 20px;
  }

  .donation-box h2 {
    font-size: 1.9rem;
  }

  .donation-value {
    font-size: 1.2rem;
  }
}


.nav-social {
  display: flex;
  gap: 15px;
  margin-left: 20px; /* Distanzia le icone dalle voci di menu */
  align-items: center;
}

.nav-social a {
  font-size: 1.2rem;
  color: var(--dark); /* Usa il colore nero definito nelle variabili */
  transition: color 0.3s ease;
}

.nav-social a:hover {
  color: var(--primary); /* Cambia colore al passaggio del mouse */
}

/* Gestione mobile */
@media (max-width: 768px) {
  .nav-social {
    margin-left: 0;
    margin-top: 15px;
    justify-content: flex-start;
  }
  
  .nav-social a {
    font-size: 1.5rem; /* Icone più grandi su mobile */
  }
}


/* Griglia Eventi */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.event-image img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.event-info {
  padding: 20px;
}

.event-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.event-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 15px;
}

.btn-small {
  display: inline-block;
  padding: 8px 15px;
  background: var(--dark);
  color: var(--white);
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: bold;
}
