/* ! Base Style */
/* ----------------------------------------------------------------------------------- */
body {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

a {
  text-decoration: none;
  color: #ffffff
}

p {
  line-height: 1.3
}


/* ! Title System */
/* ----------------------------------------------------------------------------------- */
.text-0 {
  font-size: 5rem;
}

h1,
.text-1 {
  font-size: 3.4rem;
}

h2,
.text-2 {
  font-size: 2.2rem;
}

h3,
.text-3 {
  font-size: 1.5rem;
}

h4,
p,
.text-4 {
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
p,
ol,
ul {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .text-0 {
    font-size: 4rem
  }
}

.link-paragrafo a {
  color: #bb5d00;
}

.sottotitolo {
  letter-spacing: 7px;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .sottotitolo {
    font-size: 1rem;
  }
}

.text-col {
  font-size: 2.5rem;
  font-weight: 300;
  margin: 1.5rem 0;
  background: linear-gradient(90deg, black 0%, #ff9932 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width:768px) {
  .text-col {
    font-size: 1.7rem;
  }
}

.gradient-red {
  background: linear-gradient(90deg, black 0%, #ff3232 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-orange {
  background: linear-gradient(90deg, rgb(255, 255, 255) 0%, #bb5d00 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-orange-2 {
  background: linear-gradient(90deg, rgb(0, 0, 0) 0%, #bb5d00 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-orange-3 {
  background: linear-gradient(90deg, rgb(0, 0, 0) 0%, #bb5d00 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.titolo-pagina {
  margin-left: 25px;
  letter-spacing: 10px;
}

.sottotitolo-pagina {
  letter-spacing: 5px;
  font-weight: 300;
}

.desc-ser {
  font-weight: 300;
}


/* ! Button system */
/* ----------------------------------------------------------------------------------- */
.button {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: bold;
  background: #333;
  color: #fff;
  padding: 14px 25px;
  display: inline-block;
  border-radius: 100px
}

.button:hover {
  background: #bb5d00;
}

.button-small {
  background: #3333336e;
  color: #fff;
  padding: 14px 25px;
  display: block;
  border-radius: 100px;
  width: 50%;
  margin: 0 auto;
}

.button-small:hover {
  background: #bb5d00;
}

.button--round {
  background: #fff;
  color: #000;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: bold;
}

.button--round a {
  color: #000;
}

.button--round:hover {
  background: #000;
}

.button--round:hover a {
  color: #fff;
}

.button--round-outline {
  background: transparent;
  color: #fff;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: bold;
  border: 1px solid #fff
}

.button--round-outline:hover {
  background: #fff;
  color: #000;
}


/* ! Blocks */
/* ----------------------------------------------------------------------------------- */

.img-shadow-soft {
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 10px 20px -15px rgba(0, 0, 0, 0.15);
}


.cover {
  background: #000;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.cover__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(bridge.jpg) center center;
  background-size: cover;
  z-index: 0;
  border: 1px solid #000
}

.cover__bg:after {
  content: ' ';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  ;
  background-size: cover;
}

.cover__content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.logo-home {
  max-width: 50%;
  filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .logo-home {
    max-width: 98%;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cover-inner {
  width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cover-inner {
    width: 100%;
  }
}

/* ! Cards */
/* ----------------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.card {
  background: #eee;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* 1) Titolo: stessa altezza tra le card */
.card__title {
  min-height: 120px;
  /* regola finché i titoli vanno su 2-3 righe uguali */
  margin: 0 0 12px 0;
}

/* 2) Testo: può crescere */
.card__text {
  flex: 1;
  /* prende lo spazio “variabile” */
}

/* 3) Bottone: sempre alla stessa quota */
.card__btn {
  display: inline-block;
  margin: 18px auto 22px auto;
}

/* 4) Immagine: stessa altezza/ratio in tutte */
.card__img {
  margin-top: auto;
  /* spinge l'immagine verso il fondo */
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  /* stessa proporzione */
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

/* zoom su hover della card */
.card:hover .card__img img {
  transform: scale(1.1);
}


/* responsive */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}



/* ! Animation */
/* ----------------------------------------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(1rem);
}

.text-reveal {
  transform: translateY(1rem);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.fade-up {
  opacity: 0;
  transform: translateY(5rem);
}

/* ! Slider */
.splide {
  margin-top: 100px;
}

.splide__slide {
  padding: 30px;
}

/* ! Tiles */

.tiles {
  min-height: 500px;
  border-radius: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: block;
}

.tiles__label {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #ffffff;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
  border-radius: 5px;
  padding: 5px;
  font-weight: 700;
}

.tiles__content {
  padding: 30px;
  background: rgb(255, 255, 255);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

.tiles-livio {
  background: url(img/tecno1.png);
  background-repeat: no-repeat;
  background-position: center 120%;
  background-size: cover;
  background-position-y: 100px;
}

.tiles-gianpaolo {
  background: url(img/tecno2.png);
  background-repeat: no-repeat;
  background-position: center 120%;
  background-size: cover;
  background-position-y: 100px;
}

.tiles-christian {
  background: url(img/tecno3.png);
  background-repeat: no-repeat;
  background-position: center 120%;
  background-size: cover;
  background-position-y: 100px;
}

/*MODULO DI CONTATTO___________________________________________
_______________________________________________________________*/

/* Container principale stile Scheda Larga */
.modern-form-container.card-wide {
  max-width: 850px;
  /* Più largo per un look orizzontale */
  margin: 40px auto;
  padding: 50px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Gestione Riga Nome + Email */
.form-row {
  display: flex;
  gap: 25px;
  /* Spazio tra i due campi */
  margin-bottom: 5px;
}

.flex-item {
  flex: 1;
  /* Forza i campi a dividersi lo spazio 50/50 */
}

/* Spaziatura gruppi */
.form-group {
  margin-bottom: 25px;
}

/* Stile Input e Textarea */
.modern-form-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 0px;
  color: #d1d1d1;
}

.modern-form-container input[type="text"],
.modern-form-container input[type="email"],
.modern-form-container textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #f0f0f0;
  /* Bordo leggermente più spesso */
  border-radius: 10px;
  background-color: #fbfbfb;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Effetto Focus */
.modern-form-container input:focus,
.modern-form-container textarea:focus {
  outline: none;
  border-color: #0073aa;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 115, 170, 0.08);
}

/* Pulsante Invia */
.modern-form-container input[type="submit"] {
  width: auto;
  /* Non occupa più tutta la larghezza */
  min-width: 200px;
  background-color: #0073aa;
  color: white;
  padding: 16px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modern-form-container input[type="submit"]:hover {
  background-color: #005a87;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 115, 170, 0.2);
}

/* Mobile Responsive: Sotto i 600px i campi tornano uno sotto l'altro */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .modern-form-container.card-wide {
    padding: 25px;
  }
}

/* ! Form in fondo alla pagina */
/*-------------------------------------*/

/* ! Accordion */
.acc-title {
  cursor: pointer;
  padding: 20px;
  margin-bottom: 0;
  letter-spacing: 5px;
}

.acc-panel {
  max-height: 1px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(1, .61, .355, 1);
  background: linear-gradient(140deg, #000 40%, #d66b00 100%);
  color: white;
  border-radius: 50px;
}

.acc-panel p {
  padding: 20px;
}

.acc-panel--show {
  max-height: 1200px;
}


/* mappa contatti*/

.map-responsive {
  width: 40%;
  aspect-ratio: 4 / 3;
  /* mantiene proporzione 600x450 */
  margin-right: 100px;
}

.map-responsive iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-responsive {
    width: 100%;
    margin-right: 0px;
  }
}

/* ! Gallery */
/* ----------------------------------------------------------------------------------- */

.wp-block-gallery.has-nested-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.wp-block-gallery.has-nested-images .wp-block-image {
  flex: 1 1 calc(33.333% - 16px);
  margin: 0;
}

.wp-block-gallery.has-nested-images .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .wp-block-gallery.has-nested-images .wp-block-image {
    flex: 1 1 calc(50% - 16px);
  }
}

@media (max-width: 480px) {
  .wp-block-gallery.has-nested-images .wp-block-image {
    flex: 1 1 100%;
  }
}

.gallery-overlay-wrapper {
  position: relative;
}

.gallery-overlay-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  background-color: #333;
}