/* IMPORT OTHER CSS */
@import url('css/reset.css');
@import url('fonts/style.css');

/* BASE STYLES */
body {font-family: 'Rajdhani-600', sans-serif, Arial; font-size: 16px; line-height: 24px; v-webkit-font-smoothing: subpixel-antialiased!important;}
a {text-decoration:none; outline:none;}
a:hover {text-decoration:none; outline:none;}
img {margin: 0; padding: 0; border: 0; width: 100%; height: auto; display: block;}

/* NAVIGATION MENU */
.nav-bar {position:relative; width:100%; height:120px; z-index:1000; background: rgba(78, 140, 125, 0.5);}
.menu-horizontal {width:100%; position:relative; height:120px; margin:0 auto;}
.menu-horizontal #logo {width: 204px; height: 80px; position: absolute; left: 50%; top: 20px; content: ""; margin-left:-102px; text-align: center; z-index: 9999;}
.menu-horizontal ul {margin: 0; padding: 0; list-style: none; text-align: right;}
.menu-horizontal ul li {float: none; display: inline-block; position: relative;}
.menu-horizontal ul li:nth-child(1) {float: left;}
.menu-horizontal ul li:nth-child(2) {float: left;}
.menu-horizontal ul li:nth-child(3) {float: left;}
.menu-horizontal ul li a {color:#fffff0; font-size:18px; display:block; padding: 0px 20px; letter-spacing: 1px; line-height:122px; -webkit-transition:all 0.2s ease-in; -moz-transition:all 0.2s ease-in; -ms-transition:all 0.2s ease-in; -o-transition:all 0.2s ease-in; transition:all 0.2s ease-in;}
.menu-horizontal ul li.active a {color:#f4cd50;}
.menu-horizontal ul li a:hover {color:#f4cd50;}
.menu-vertical {display:none;}
#icons-nav {display:none;}

@media screen and (max-width:991px) {
  .nav-bar {height:80px;}
  .nav-bar a {text-decoration:none;}
  .menu-horizontal {display:none;}
  .menu-vertical {margin:0px auto; width:100%; display:block; overflow:hidden; position: relative;}
  .menu-vertical strong {font-family: 'Rajdhani-600', sans-serif, Arial; font-weight:400;}
  .menu-vertical #logo {width: 154px; height: 60px; position: absolute; left: 50%; top: 10px; content: ""; margin-left:-77px; text-align: center; z-index: 9999;}
  .menu-vertical .nav-lista {float:left; width:100%; overflow:hidden; height:0;}
  .menu-vertical .nav-lista li {font-size:16px; float:left; list-style:none; width:100%; background:#4E8C7D; border-bottom:1px solid #559989; -webkit-transition:all 0.2s ease-in; -moz-transition:all 0.2s ease-in; -ms-transition:all 0.2s ease-in; -o-transition:all 0.2s ease-in; transition:all 0.2s ease-in; text-align:center;}
  .menu-vertical .nav-lista li a {display:block; padding:10px 0px; color:#fffff0;}
  .menu-vertical .nav-lista li.active a {color:#C9A449; text-decoration:none;}
  .menu-vertical .nav-lista li a:hover {color:#C9A449; font-weight:400;}
  .menu-vertical .nav-menu {position:relative; color:#eeeeee; display:block; margin:-1px 0px 0px 20px; cursor:pointer; float:left; font-size:31px; line-height:80px;}
  .menu-vertical .nav-aperto {height:auto;}
  .icons-nav {width: auto; height: 30px; position: fixed; top:25px; right:20px; z-index:1000;}
  .icons-nav a.phone {margin-right: 5px; width: 30px; height: 30px; background: url('images/icons/icon-phone-nav.png') no-repeat 0 0; cursor: pointer; float: left;}
  .icons-nav a.phone:hover {background: url('images/icons/icon-phone-nav-hover.png') no-repeat 0 0;}
  .icons-nav a.instagram {margin-right: 8px; width: 30px; height: 30px; background: url('images/icons/icon-instagram-nav.png') no-repeat 0 0; cursor: pointer; float: left;}
  .icons-nav a.instagram:hover {background: url('images/icons/icon-instagram-nav-hover.png') no-repeat 0 0;}
  .icons-nav a.en {border-radius: 5px; width: 30px; height: 30px; background: url('images/icons/icon-en-nav.png') no-repeat 0 0; cursor: pointer; float: left;}
  .icons-nav a.en:hover {background: url('images/icons/icon-en-nav-hover.png') no-repeat 0 0;}
  .icons-nav a.it {border-radius: 5px; width: 30px; height: 30px; background: url('images/icons/icon-it-nav.png') no-repeat 0 0; cursor: pointer; float: left;}
  .icons-nav a.it:hover {background: url('images/icons/icon-it-nav-hover.png') no-repeat 0 0;}
}

/* BASE CLEAR */
.clearfix:after {clear:both; content:""; display:block; font-size:0; height:0; line-height:0; visibility:hidden; width:0;}

/* VIDEO */
#hero {position: absolute; top: 0; left: 0; width:100vw; height:100vh; overflow:hidden;}
#hero video {position:absolute; top:50%; left:50%; width:100vw; height:100vh; object-fit:cover; transform:translate(-50%, -50%); z-index:0;}
#hero .overlay {position:absolute; top:0; left:0; width:100vw; height:100vh; background:rgba(0,0,0,0.1); z-index:1;}
.contenuto {position:relative; z-index:1; color:white; text-align:center; display:flex; flex-direction:column; justify-content:center; align-items:center; height:100vh; padding:0 1rem;}
.contenuto h1 {font-size: 60px; line-height: 66px;}
.contenuto p {font-size:20px; line-height: 60px;}
.contenuto p.payoff {font-size:24px; line-height: 24px;}

/* Sezione successiva */
#next-section {margin-top: 91.2vh; position: relative; z-index: 1; min-height: 500px;}

.intro {text-align: center; padding-top: 80px; margin-bottom: 30px;}
.intro.first {padding-top: 100px;}
.intro h2 {margin: 0 0 40px; font-size: 2.5rem; font-weight: bold; color: #333;}
.intro p {margin: 0 auto; width: 80%; color: #555; font-size: 1.2rem; line-height: 1.4;}

.container {width: 100%; padding: 20px; box-sizing: border-box; overflow: hidden;}
.box {float: left; width: calc((100% - 40px) / 3); margin-right: 20px; margin-bottom: 20px; background: #4E8C7D; box-sizing: border-box; position: relative;}
.box:nth-child(3n) {margin-right: 0;}

.box-content {position: relative; width: 100%; padding-bottom: 100%; overflow: hidden; background: #4E8C7D; box-sizing: border-box;}

.text-wrapper {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 80px; box-sizing: border-box; color: white; text-align: left; width: calc(100% - 30px); max-height: calc(100% - 30px); overflow: auto;}
.text-wrapper h3 {margin: 0 0 10px; font-size: 2.5rem; font-weight: bold;}
.text-wrapper p {margin: 20px 0px 0px 0px; font-size: 1.2rem; line-height: 1.4;}

.image-box .box-content img {position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;}

@media (max-width: 768px) {
  .box {width: 100%; margin-right: 0;}
  .text-wrapper {padding: 40px;}
  /* BOX TESTO: si adatta all'altezza del contenuto */
  .box:not(.image-box) .box-content {
    padding-bottom: unset;
    height: auto;
    overflow: visible;
  }

  .box:not(.image-box) .text-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 40px;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  /* BOX IMMAGINE: resta quadrato */
  .image-box .box-content {
    padding-bottom: 100%; /* mantiene quadrato */
    height: auto;
    position: relative;
    overflow: hidden;
  }

  .image-box .box-content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* GALLERY */
.gallery {margin:0 auto; margin-top: 50px; padding:0; border: 0; width: 100%; height: auto; position: relative;}

.footer {
  position: relative;
  z-index: 2;
  background: #121212;
  color: #C9A449;
  padding: 15px 0px 60px 0px;
  text-align: center; /* centra il contenuto orizzontalmente */
}

.footer a {
  text-decoration: none;
  color: #C9A449;
}

.footer a:hover {
  color: #ffffff;
}

/* Rimuoviamo float e larghezze fisse */
.footer .privacy,
.footer .copyright {
  float: none;
  width: 100%;
  margin: 5px 0; /* margine verticale tra le righe */
}

/* colore del separatore | */
.footer .privacy span {
  color: #c9ab81;
}



/* WHATSAPP */
.whatsapp-icon {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px; /* spazio tra icona e testo */
  background-color: #C9A449; /* colore oro */
  padding: 10px 15px;
  border-radius: 35px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
}

.whatsapp-icon:hover {
  transform: scale(1.05);
}

.whatsapp-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}

.whatsapp-label {
  color: #121212;
  font-family: 'Rajdhani-600', sans-serif;
  font-size: 16px;
  font-weight: bold;
  padding: 6px 3px 6px 0px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1;
}



/* GLOBAL RESET + SCROLL FIX */
*, *::before, *::after {box-sizing: border-box;}

/* CONTATTI */
.contatti {padding: 100px 20px; width: 100%; height: auto; background-color: #4E8C7D; color: #fff; text-align: center;}

/* CONTAINER DESKTOP */
.container2 {max-width: 1140px; margin: 0 auto; display: table; table-layout: fixed; width: 100%;}

/* INFO BOX */
.info-box {display: table-cell; vertical-align: top; padding: 0 15px;}
.info-box h4 {font-size: 30px; margin-bottom: 15px; position: relative;}
.info-box p {font-size: 16px; color: #f7f7f7; margin-bottom: 0px;}
.info-box a {color: #f7f7f7; text-decoration: none;}
.info-box a:hover {color: #c9ab81;}

/* DIVIDER */
.divider {display: table-cell; width: 1px; background-color: #c9ab81;}

/* MOBILE */
@media (max-width: 768px) {
   #next-section {margin-top: 100vh; position: relative; z-index: 1; min-height: 500px;}
  .intro {padding-top: 30px;}
  .intro.first {padding-top: 50px;}
  .text-wrapper {text-align: center;}
  .container2 {display: block;}
  .info-box, .divider {display: block; width: 100%;}
  .info-box {padding: 0 10px; margin-bottom: 50px;}
  .info-box h4::after {content: ""; display: block; width: 60px; height: 2px; background: #c9ab81; margin: 15px auto 0;}
  .intro p {}
  .info-box h4 {font-size: 24px;}
  .info-box p, .info-box a {}
  .icon-facebook, .icon-instagram {width: 40px; height: 40px;}
  .column-1s {margin-top: 50px;}
}


/* PAGINA TESTO GENERICO */
.text-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
  color: #333;
  font-family: 'Rajdhani-600', sans-serif, Arial;
  line-height: 1.4;
  font-size: 18px;
  background-color: #fff;
}

/* Titolo principale */
.text-page h1 {
  font-size: 42px;
  color: #4E8C7D;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.2;
}

/* Sottotitoli principali */
.text-page h2 {
  font-size: 36px;
  color: #C9A449;
  margin: 50px 0 15px; /* <--- Aggiunto margin-top */
  text-align: center;
  line-height: 1.3;
}

/* Nuovo: Titolo secondario (h3) */
.text-page h3 {
  font-size: 22px;
  color: #4E8C7D;
  margin-top: 5px;
  margin-bottom: 5px;
  line-height: 1.4;
  text-align: left;
}

/* Link */
.text-page a {
  color: #4E8C7D;
  text-decoration: none;
  font-weight: bold;
}

.text-page a:hover {
  color: #C9A449;
}

/* Paragrafi */
.text-page p {
  margin-bottom: 10px;
  font-size: 18px;
  color: #555;
}

/* Liste */
.text-page ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.text-page ul li {
  margin-bottom: 5px;
}

/* Evidenziazioni */
.text-page .highlight {
  background-color: #f4f4f4;
  padding: 10px;
  border-left: 4px solid #C9A449;
  margin-bottom: 20px;
}

/* Responsive: ottimizza i titoli in mobile */
@media (max-width: 768px) {
  .text-page h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .text-page h2 {
    font-size: 26px;
    line-height: 1.2;
  }

  .text-page h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  .text-page p {
    font-size: 17px;
  }
}

/* Container principale */
.hero-404 {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('images/404-cover.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 0 20px;
  z-index: 0;
}

/* Contenuto centrato */
.hero-404-content {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  width: 100%;
}

/* Titolo */
.hero-404 h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

/* Paragrafo */
.hero-404 p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

/* Pulsante */
.hero-404 a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero-404 a:hover {
  background-color: #ddd;
}

/* Responsive per dispositivi mobili */
@media (max-width: 768px) {
  .hero-404 h1 {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .hero-404 p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .hero-404 a {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* TO TOP PAGE */
 #toTopPage {
  width: 50px;
  height: 50px;
  background: url(images/toTopPage.png) no-repeat center center;
  background-size: 60%; /* Ridimensiona l'icona per centrarsi meglio nel cerchio */
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  display: none;
  z-index: 9998;

  /* Stile cerchio */
  background-color: #c9a449; /* Colore di sfondo (blu) */
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

  /* Transizione dolce */
  transition: background-color 0.3s, transform 0.3s;
}

/* Hover effect */
#toTopPage:hover {
  background-color: #c9a449; /* Colore pił scuro al passaggio del mouse */
  transform: scale(1.1); /* Ingrandimento leggero */
}


/* ShinyStat TM Free========================================================================== */
  #shiny-stat-tm-free {margin: 0px auto; padding: 0px; width:106px; height:40px; position: relative;}
  #shiny-stat-tm-free #link-shiny-stat-tm-free {width:auto; height:auto; position: relative;}   








