/* Centra il paragrafo sotto 'Chi siamo?' */
#about p {
  text-align: center;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #145A32;
}

/* SOCIAL MENU */
.social-menu {
  display: flex;
  gap: 15px;
  list-style: none;
  position: absolute;
  top: 15px;
  right: 40px;
}

.social-menu img {
  width: 25px;
  height: auto;
}

/* NAVBAR DESKTOP */
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 15px 40px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 90, 50, 0.95);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.logo {
  height: 55px;
  transition: transform 0.3s ease;
}

.logo.zoomed {
  transform: scale(1.5);
}

/* MENU PRINCIPALE DESKTOP */
.main-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin-left: 0;
}

.social-menu {
  margin-left: auto;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: #FFD700;
}

/* HERO */
.hero {
  height: 100vh;
  background: url('logo.jpg') no-repeat center center/cover;
  position: relative;
  color: white;
}

.hero-content {
  position: relative;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}

.btn {
  background: white;
  color: #145A32;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 25px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn:hover {
  background: white;
  color: #1E7F43;
  transform: translateY(-3px);
}

/* SEZIONI */
.section {
  padding: 70px 20px;
  text-align: left;
}

.section.light {
  background: #145A32;
}

.section.dark {
  background: #222;
  color: white;
}

.container {
  max-width: 1000px;
  margin: auto;
}

/* EVENTI */
.event-list {
  display: grid;
  gap: 25px;
  margin-top: 40px;
}

.event {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 20px;
}

.event:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 16px rgba(0,0,0,0.15);
}

.event h3 {
  color: #1E7F43;
  margin-bottom: 12px;
}

.event-content {
  flex: 1;
}

.event-logo-small {
  width: 200px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.event-img {
  width: 100%;
  max-height: 30px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.event-img:hover {
  transform: scale(1.03);
}

/* PROGETTI */
.project-list {
  color: white;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: white url('logo.jpg') no-repeat center center/cover;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(177, 28, 28, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 16px rgba(0,0,0,0.15);
}

.project-card h3 {
  color: #145A32;
  margin-bottom: 10px;
}

/* CONTATTI */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px auto;
}

.contact-card {
  background: #145A32;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contact-card h3,
.contact-card a {
  background: linear-gradient(270deg, #145A32, #ffffff, #1E7F43);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 8px;
  text-decoration: none;
  animation: gradientMove 10s ease infinite;
}

.section h2 {
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
}

/* MENU MOBILE */
.hamburger {
  display: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* CHI SIAMO – FOTO SINGOLA + TESTO */
.about-photo {
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
}

.about-photo img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.about-text {
  text-align: center;
  font-size: 1.15rem;
  max-width: 850px;
  margin: 25px auto 0;
  line-height: 1.7;
  color: white;
}

/* EVENTI – LOGO SOPRA + DESCRIZIONE */
.event-list-modern {
  display: grid;
  gap: 35px;
  margin-top: 40px;
}

.event-card-simple {
  background: #fdfbfb;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card-simple:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgb(255, 255, 255);
}

.event-logo-modern {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.event-content-modern h3 {
  color: #050505;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.event-content-modern p {
  color: #eeeeee00;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
}
/* COLLABORAZIONI – CARD MODERNE */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.collab-card {
  background:#053a19;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.collab-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.collab-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-top: 10px;
}
/* RIPRISTINO GALLERIA */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 50px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
/* TERZA CATEGORIA – SFONDO + DESCRIZIONE */
.terza-bg {
  background-image: url("logo.jpg"); /* Cambia con la tua foto */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 20px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}

.terza-overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 60px 20px;
  border-radius: 12px;
}

.terza-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.terza-content h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #FFD700;
}

.terza-content p {
  font-size: 1.2rem;
  line-height: 1.7;
}
/* CONTATTACI – CARD SOCI */
.soci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.socio-card {
  background: #145A32;
  padding: 25px;
  border: 2px solid #ffffff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.socio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.socio-card h3 {
  color:#0f7525(0, 0%, 99%);
  margin-bottom: 10px;
}

.socio-card a {
  color: #c2d1c5;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.socio-card a:hover {
  color: #FFD700;
}
/* CARD PRINCIPALE */
.main-card {
  background: #444;
  border: 2px solid #ffffff;
  margin-bottom: 40px;
}

.main-card h3 {
  font-size: 1.4rem;
}

.main-card a {
  font-size: 1.2rem;
  color: #00ff73;
}
/* SFONDO VERDE SOLO PER LA SEZIONE CONTATTACI */
.section.dark.contact-section {
    background: #145A32; /* verde scuro elegante */
}



/* SFONDO VERDE PER LA GALLERIA */
.gallery-section {
    background-color:  #145A32 !important; /* verde del sito */
}

/* SFONDO VERDE PER LA SEZIONE COLLABORAZIONI */
.collaborazioni-section {
    background-color: #145A32 !important; /* stesso verde del sito */
}

/* MODALE EMAIL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

#emailForm {
    display: flex;
    flex-direction: column;
}

#emailForm label {
    margin-top: 10px;
    font-weight: bold;
}

#emailForm input,
#emailForm textarea {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

#emailForm textarea {
    resize: vertical;
    min-height: 100px;
}

#emailForm button {
    margin-top: 15px;
    padding: 10px;
    background-color: #145A32;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#emailForm button:hover {
    background-color: #1E7F43;
}

/* MENU MOBILE NASCOSTO DI BASE */
.main-menu {
    display: none;
    flex-direction: column;
    background: #145A32 ;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 20px;
    border-radius: 0 0 0 12px;
    z-index: 9999;
}

/* MOSTRA IL MENU QUANDO IL CHECKBOX È ATTIVO */
#menu-toggle:checked ~ .main-menu {
    display: flex;
}

/* HAMBURGER SEMPRE VISIBILE SU MOBILE */
.hamburger {
    display: block;
    font-size: 32px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* NASCONDI IL CHECKBOX */
#menu-toggle {
    display: none;
}

/* SU DESKTOP MOSTRA IL MENU NORMALMENTE */
@media (min-width: 900px) {
    .main-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        width: auto;
        padding: 0;
    }

    .hamburger {
        display: none;
    }
}
