/*
Theme Name: Cinque Cerchi Theme Completo
Version: 1.3
*/

/* RESET BASE */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

body, main, .wp-site-blocks, .entry-content, header + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* HEADER */
header {
  background-color: #00c7c7;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-logo img {
  max-height: 70px;
  height: auto;
/*  padding: 25px; */
}


nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* HERO SECTION CON IMMAGINE UNICA 

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('<?php echo get_template_directory_uri(); ?>/images/hero.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 120px 20px;
  text-align: center;
}

*/


.hero h1 {
  font-size: 3em;
  margin-bottom: 0.3em;
  font-weight: 800;
}

.hero p {
  font-size: 1.3em;
  margin-bottom: 1.5em;
}

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

.hero .btn {
  background: white;
  color: #00c7c7;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero .btn:hover {
  background: #333;
  color: white;
}

.hero .btn-alt {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.hero .btn-alt:hover {
  background: white;
  color: #00c7c7;
}

/* FOOTER */

.site-footer {
  background: #222;
  color: #eee;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #00c7c7;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li a {
  color: #eee;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 30px;
  font-size: 0.9em;
}

.social-icons a img {
  width: 24px;
  margin-right: 10px;
  vertical-align: middle;
  filter: brightness(1.5);
}


/* vito */

.hero-section {
  background-image: url('https://www.asdcinquecerchi.eu/wp-content/uploads/2025/07/hero-background-scaled.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  padding: 200px 20px 120px; /* più spazio sopra e sotto */
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  min-height: 100vh; /* altezza 100% della finestra */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* Mobile fix */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    background-size: contain;
    background-position: center top;
    min-height: 90vh;
    padding-top: 180px;
    padding-bottom: 100px;
  }

  .hero-section::before {
    background: rgba(0, 0, 0, 0.55);
  }
}



/* Testi sopra l’overlay */
.hero-section > * {
    position: relative;
    z-index: 2;
}

/* Bottoni */
.hero-section a.button,
.hero-section a {
    background-color: white;
    color: #333 !important;
    padding: 10px 25px;
    border-radius: 25px;
    border: 2px solid white;
    margin: 10px;
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-section a:hover {
    background-color: transparent;
    color: white !important;
    border-color: white;
}

.scroll-arrow {
  margin-top: 30px;
  animation: bounce 2s infinite;
}

.scroll-arrow span {
  font-size: 40px;
  color: #00c7c7;
  display: inline-block;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}






/* eliminato provvisoriamente
.site-logo {
  background: white;
  padding: 5px 10px;
  border-radius: 6px;
}

*/








.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: 1.5rem;
  margin-top: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  .hero-content p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
  }
}






.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.hero-logo img {
  max-height: 400px; /* oppure 180px o più */
  width: auto;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
  .hero-logo img {
    max-height: 100px;
  }
}


.risultati-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

.risultato-box {
  background-color: #00c7c7;
  color: white;
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
}

.risultato-box .count {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.risultato-box .label {
  font-size: 1.1rem;
}

.contatti {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  font-family: sans-serif;
}

.contatti h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.contatti p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.form-contatto {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-contatto input,
.form-contatto textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.form-contatto button {
  padding: 12px;
  background-color: #00c7c7;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
}

.form-contatto button:hover {
  background-color: #009f9f;
}

.contatti-info {
  margin-top: 40px;
  font-size: 1rem;
  text-align: center;
  color: #444;
}
