/* ============================================
   GS SERVICE - Landing Page
 
   Palette:
   - Blu aziendale: #0A6FB1
   - Verde fotovoltaico: #6BBF59
   - Neutro chiaro: #F7F8FA
   - Testo scuro: #333333
   - Accento/CTA: #00A3E0
   ============================================ */

.m-0 {margin: 0px !important}
.m-5 {margin: 5px !important}
.m-10 {margin: 10px !important}
.m-15 {margin: 15px !important}
.m-20 {margin: 20px !important}
.m-30 {margin: 30px !important}
.m-40 {margin: 40px !important}
.m-50 {margin: 50px !important}
.m-60 {margin: 60px !important}
.m-70 {margin: 70px !important}
.m-80 {margin: 80px !important}
.m-90 {margin: 90px !important}
.m-100 {margin: 100px !important}
.m-110 {margin: 110px !important}
.m-120 {margin: 120px !important}
.m-130 {margin: 130px !important}
.m-140 {margin: 140px !important}
.m-150 {margin: 150px !important}
.m-160 {margin: 160px !important}
.m-170 {margin: 170px !important}
.m-180 {margin: 180px !important}
.m-190 {margin: 190px !important}
.m-200 {margin: 200px !important}

/*
 * 1.2 -> Basic Padding
 * -----------------------------------------------
*/
.p-0 {padding: 0!important;}
.p-5 {padding: 5px !important}
.p-10 {padding: 10px !important}
.p-15 {padding: 15px !important}
.p-20 {padding: 20px !important}
.p-30 {padding: 30px !important}
.p-40 {padding: 40px !important}
.p-50 {padding: 50px !important}
.p-60 {padding: 60px !important}
.p-70 {padding: 70px !important}
.p-80 {padding: 80px !important}
.p-90 {padding: 90px !important}
.p-100 {padding: 100px !important}
.p-110 {padding: 110px !important}
.p-120 {padding: 120px !important}
.p-130 {padding: 130px !important}
.p-140 {padding: 140px !important}
.p-150 {padding: 150px !important}
.p-160 {padding: 160px !important}
.p-170 {padding: 170px !important}
.p-180 {padding: 180px !important}
.p-190 {padding: 190px !important}
.p-200 {padding: 200px !important}

/*
 * 1.3 -> Margin top
 * -----------------------------------------------
*/
.mt-0 {margin-top: 0!important;}
.mt-5 {margin-top: 5px !important}
.mt-10 {margin-top: 10px !important}
.mt-15 {margin-top: 15px !important}
.mt-20 {margin-top: 20px !important}
.mt-30 {margin-top: 30px !important}
.mt-40 {margin-top: 40px !important}
.mt-50 {margin-top: 50px !important}
.mt-60 {margin-top: 60px !important}
.mt-70 {margin-top: 70px !important}
.mt-80 {margin-top: 80px !important}
.mt-90 {margin-top: 90px !important}
.mt-100 {margin-top: 100px !important}
.mt-110 {margin-top: 110px !important}
.mt-120 {margin-top: 120px !important}
.mt-130 {margin-top: 130px !important}
.mt-140 {margin-top: 140px !important}
.mt-150 {margin-top: 150px !important}
.mt-160 {margin-top: 160px !important}
.mt-170 {margin-top: 170px !important}
.mt-180 {margin-top: 180px !important}
.mt-190 {margin-top: 190px !important}
.mt-200 {margin-top: 200px !important}

/*
 * 1.4 -> Margin right
 * -----------------------------------------------
*/
.mr-0 {margin-right: 0!important;}
.mr-5 {margin-right: 5px !important}
.mr-10 {margin-right: 10px !important}
.mr-15 {margin-right: 15px !important}
.mr-20 {margin-right: 20px !important}
.mr-30 {margin-right: 30px !important}
.mr-40 {margin-right: 40px !important}
.mr-50 {margin-right: 50px !important}
.mr-60 {margin-right: 60px !important}
.mr-70 {margin-right: 70px !important}
.mr-80 {margin-right: 80px !important}
.mr-90 {margin-right: 90px !important}
.mr-100 {margin-right: 100px !important}
.mr-110 {margin-right: 110px !important}
.mr-120 {margin-right: 120px !important}
.mr-130 {margin-right: 130px !important}
.mr-140 {margin-right: 140px !important}
.mr-150 {margin-right: 150px !important}
.mr-160 {margin-right: 160px !important}
.mr-170 {margin-right: 170px !important}
.mr-180 {margin-right: 180px !important}
.mr-190 {margin-right: 190px !important}
.mr-200 {margin-right: 200px !important}

/*
 * 1.5 -> Margin bottom
 * -----------------------------------------------
*/
.mb-0 {margin-bottom: 0!important;}
.mb-5 {margin-bottom: 5px !important}
.mb-10 {margin-bottom: 10px !important}
.mb-15 {margin-bottom: 15px !important}
.mb-20 {margin-bottom: 20px !important}
.mb-30 {margin-bottom: 30px !important}
.mb-40 {margin-bottom: 40px !important}
.mb-50 {margin-bottom: 50px !important}
.mb-60 {margin-bottom: 60px !important}
.mb-70 {margin-bottom: 70px !important}
.mb-80 {margin-bottom: 80px !important}
.mb-90 {margin-bottom: 90px !important}
.mb-100 {margin-bottom: 100px !important}
.mb-110 {margin-bottom: 110px !important}
.mb-120 {margin-bottom: 120px !important}
.mb-130 {margin-bottom: 130px !important}
.mb-140 {margin-bottom: 140px !important}
.mb-150 {margin-bottom: 150px !important}
.mb-160 {margin-bottom: 160px !important}
.mb-170 {margin-bottom: 170px !important}
.mb-180 {margin-bottom: 180px !important}
.mb-190 {margin-bottom: 190px !important}
.mb-200 {margin-bottom: 200px !important}

/*
 * 1.6 -> Margin left
 * -----------------------------------------------
*/
.ml-0 {margin-left: 0!important;}
.ml-5 {margin-left: 5px !important}
.ml-10 {margin-left: 10px !important}
.ml-15 {margin-left: 15px !important}
.ml-20 {margin-left: 20px !important}
.ml-30 {margin-left: 30px !important}
.ml-40 {margin-left: 40px !important}
.ml-50 {margin-left: 50px !important}
.ml-60 {margin-left: 60px !important}
.ml-70 {margin-left: 70px !important}
.ml-80 {margin-left: 80px !important}
.ml-90 {margin-left: 90px !important}
.ml-100 {margin-left: 100px !important}
.ml-110 {margin-left: 110px !important}
.ml-120 {margin-left: 120px !important}
.ml-130 {margin-left: 130px !important}
.ml-140 {margin-left: 140px !important}
.ml-150 {margin-left: 150px !important}
.ml-160 {margin-left: 160px !important}
.ml-170 {margin-left: 170px !important}
.ml-180 {margin-left: 180px !important}
.ml-190 {margin-left: 190px !important}
.ml-200 {margin-left: 200px !important}

/*
 * 1.7 -> Padding top
 * -----------------------------------------------
*/
.pt-0 {padding-top: 0!important;}
.pt-5 {padding-top: 5px !important}
.pt-10 {padding-top: 10px !important}
.pt-15 {padding-top: 15px !important}
.pt-20 {padding-top: 20px !important}
.pt-30 {padding-top: 30px !important}
.pt-40 {padding-top: 40px !important}
.pt-50 {padding-top: 50px !important}
.pt-60 {padding-top: 60px !important}
.pt-70 {padding-top: 70px !important}
.pt-80 {padding-top: 80px !important}
.pt-90 {padding-top: 90px !important}
.pt-100 {padding-top: 100px !important}
.pt-110 {padding-top: 110px !important}
.pt-120 {padding-top: 120px !important}
.pt-130 {padding-top: 130px !important}
.pt-140 {padding-top: 140px !important}
.pt-150 {padding-top: 150px !important}
.pt-160 {padding-top: 160px !important}
.pt-170 {padding-top: 170px !important}
.pt-180 {padding-top: 180px !important}
.pt-190 {padding-top: 190px !important}
.pt-200 {padding-top: 200px !important}

/*
 * 1.8 -> Padding right
 * -----------------------------------------------
*/
.pr-0 {padding-right: 0!important;}
.pr-5 {padding-right: 5px !important}
.pr-10 {padding-right: 10px !important}
.pr-15 {padding-right: 15px !important}
.pr-20 {padding-right: 20px !important}
.pr-30 {padding-right: 30px !important}
.pr-40 {padding-right: 40px !important}
.pr-50 {padding-right: 50px !important}
.pr-60 {padding-right: 60px !important}
.pr-70 {padding-right: 70px !important}
.pr-80 {padding-right: 80px !important}
.pr-90 {padding-right: 90px !important}
.pr-100 {padding-right: 100px !important}
.pr-110 {padding-right: 110px !important}
.pr-120 {padding-right: 120px !important}
.pr-130 {padding-right: 130px !important}
.pr-140 {padding-right: 140px !important}
.pr-150 {padding-right: 150px !important}
.pr-160 {padding-right: 160px !important}
.pr-170 {padding-right: 170px !important}
.pr-180 {padding-right: 180px !important}
.pr-190 {padding-right: 190px !important}
.pr-200 {padding-right: 200px !important}

/*
 * 1.9 -> Padding bottom
 * -----------------------------------------------
*/
.pb-0 {padding-bottom: 0!important;}
.pb-5 {padding-bottom: 5px !important}
.pb-10 {padding-bottom: 10px !important}
.pb-15 {padding-bottom: 15px !important}
.pb-20 {padding-bottom: 20px !important}
.pb-30 {padding-bottom: 30px !important}
.pb-40 {padding-bottom: 40px !important}
.pb-50 {padding-bottom: 50px !important}
.pb-60 {padding-bottom: 60px !important}
.pb-70 {padding-bottom: 70px !important}
.pb-80 {padding-bottom: 80px !important}
.pb-90 {padding-bottom: 90px !important}
.pb-100 {padding-bottom: 100px !important}
.pb-110 {padding-bottom: 110px !important}
.pb-120 {padding-bottom: 120px !important}
.pb-130 {padding-bottom: 130px !important}
.pb-140 {padding-bottom: 140px !important}
.pb-150 {padding-bottom: 150px !important}
.pb-160 {padding-bottom: 160px !important}
.pb-170 {padding-bottom: 170px !important}
.pb-180 {padding-bottom: 180px !important}
.pb-190 {padding-bottom: 190px !important}
.pb-200 {padding-bottom: 200px !important}

/*
 * 1.10 -> Padding left
 * -----------------------------------------------
*/
.pl-0 {padding-left: 0!important;}
.pl-5 {padding-left: 5px !important}
.pl-10 {padding-left: 10px !important}
.pl-15 {padding-left: 15px !important}
.pl-20 {padding-left: 20px !important}
.pl-30 {padding-left: 30px !important}
.pl-40 {padding-left: 40px !important}
.pl-50 {padding-left: 50px !important}
.pl-60 {padding-left: 60px !important}
.pl-70 {padding-left: 70px !important}
.pl-80 {padding-left: 80px !important}
.pl-90 {padding-left: 90px !important}
.pl-100 {padding-left: 100px !important}
.pl-110 {padding-left: 110px !important}
.pl-120 {padding-left: 120px !important}
.pl-130 {padding-left: 130px !important}
.pl-140 {padding-left: 140px !important}
.pl-150 {padding-left: 150px !important}
.pl-160 {padding-left: 160px !important}
.pl-170 {padding-left: 170px !important}
.pl-180 {padding-left: 180px !important}
.pl-190 {padding-left: 190px !important}
.pl-200 {padding-left: 200px !important}
.bgCover{background-size: cover !important;}
.bgCenter{background-position: center center !important;}
.bgNoRepeat{background-repeat: no-repeat !important;}
.h100{height: 100% !important;}
.w100{width: 100% !important}
.ml-auto{margin-left: auto;}
.mr-auto{margin-right: auto;}

.fs-10{font-size: 10px;}
.fs-15{font-size: 15px;}
.fs-20{font-size: 20px;}
.fs-25{font-size: 25px;}
.fs-30{font-size: 30px;}
.fs-35{font-size: 35px;}
.fs-40{font-size: 40px;}
.fs-45{font-size: 45px;}
.fs-50{font-size: 50px;}
.fs-55{font-size: 55px;}
.fs-60{font-size: 60px;}

.float-left{float:left!important}
.float-right{float:right!important}
.float-none{float:none!important}
@media (min-width:576px){
	.float-sm-left{float:left!important}
	.float-sm-right{float:right!important}
	.float-sm-none{float:none!important}
	
	.text-sm-left{text-align: left !important;}
	.text-sm-right{text-align: right !important;}
}
@media (min-width:768px){
	.float-md-left{float:left!important}
	.float-md-right{float:right!important}
	.float-md-none{float:none!important}
	
	.text-md-left{text-align: left !important;}
	.text-md-right{text-align: right !important;}
}
@media (min-width:992px){
	.float-lg-left{float:left!important}
	.float-lg-right{float:right!important}
	.float-lg-none{float:none!important}
	
	.text-lg-left{text-align: left !important;}
	.text-lg-right{text-align: right !important;}
}
@media (min-width:1200px){
	.float-xl-left{float:left!important}
	.float-xl-right{float:right!important}
	.float-xl-none{float:none!important}
	
	.text-xl-left{text-align: left !important;}
	.text-xl-right{text-align: right !important;}
}

.centerValign{
	display: flex;
  justify-content: center;
  align-items: center;
}
.text-left{
	text-align: left !important;
}
.text-right{
	text-align: right !important;
}
.credits_link{
 color: #38B5E6 !important;
 font-weight: 700;
 font-family: sans-serif;
}

.credits_link:hover{
 color: #fff !important;
}

 .credits_link:before{
  content: "";
  vertical-align: middle;
  width:16px;
  height: 16px;
  display: inline-block;
  margin-right: 5px;
  margin-left: 5px;
  background-image: url(https://www.clion.it/favicon-96x96.png);
  background-repeat: no-repeat;
  -webkit-background-size: contain;
  background-size: contain;
  background-position: center center;

  transition: all 450ms ease;
 }

  .credits_link:hover:before{
   transform: rotateZ(360deg) rotateY(360deg);
  }
/* ---------- WOW.js - Nascondi elementi prima dell'animazione ---------- */
.wow {
    visibility: hidden;
}

.wow.animate__animated {
    visibility: visible;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333333;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- BUTTONS ---------- */
.btn-cta {
    background-color: #00A3E0;
    color: #fff;
    border: 2px solid #00A3E0;
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #0A6FB1;
    border-color: #0A6FB1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 224, 0.3);
}

.btn-outline-cta {
    background-color: transparent;
    color: #0A6FB1;
    border: 2px solid #0A6FB1;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-cta:hover {
    background-color: #0A6FB1;
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   HEADER - Logo centrato con box bianco che sborda
   ============================================ */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #0A6FB1;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.header-main.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar custom layout */
.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    padding: 0 40px;
    position: relative;
}

/* Lati menu */
.nav-side {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 40px;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 40px;
}

.nav-side .nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-side .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-side .nav-link:hover::after,
.nav-side .nav-link.active::after {
    width: 100%;
}

.nav-side .nav-link:hover,
.nav-side .nav-link.active {
    color: rgba(255, 255, 255, 0.8);
}

/* Scrolled state: link diventano blu */
.header-main.scrolled .nav-side .nav-link {
    color: #333;
}

.header-main.scrolled .nav-side .nav-link::after {
    background-color: #00A3E0;
}

.header-main.scrolled .nav-side .nav-link:hover,
.header-main.scrolled .nav-side .nav-link.active {
    color: #00A3E0;
}

/* Logo wrapper - box bianco che sborda */
.nav-logo-wrapper {
    position: relative;
    z-index: 1060;
    background: #fff;
    padding: 15px 25px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    /* Sborda verso il basso */
    margin-top: 0;
    align-self: flex-start;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* In prima apertura il box sborda sulla slider */
.header-main:not(.scrolled) .nav-logo-wrapper {
    padding: 20px 30px;
    margin-bottom: -30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Quando si scrolla, il logo si riduce */
.header-main.scrolled .nav-logo-wrapper {
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 8px 8px;
}

.nav-logo-link {
    display: block;
}

.nav-logo-wrapper img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.header-main.scrolled .nav-logo-wrapper img {
    height: 40px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
}

.mobile-toggle span {
    width: 26px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-main.scrolled .mobile-toggle span {
    background-color: #333;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 20px;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    background: #F7F8FA;
    color: #00A3E0;
}

/* ============================================
   HERO SLIDER - Full width
   ============================================ */
.hero-section {
    margin-top: 70px;
    width: 100%;
}

.hero-slider {
    width: 100%;
}

.hero-slide {
    position: relative;
    height: 88vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    overflow: hidden;
}

.hero-slide .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: none;
}

.hero-slide.slick-active .hero-bg {
    animation: kenburns 5s ease-in-out forwards;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 45vw;
    padding: 0 0 60px 90px;
    margin: 0;
    text-align: left;
	text-shadow: 0px 0px 22px rgba(0, 0, 0, 1);
}

/* Visually hidden: accessibile agli screen reader ma non visibile */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero-content h1,
.hero-content h2 {
    font-size: clamp(36px, 8vw, 120px);
    font-weight: 700;
    line-height: 1.0;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.05em;
}

.hero-content p {
    font-size: clamp(0.9rem, 1.5vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 32px;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Slick Arrows - Triangoli blu con freccia bianca */
.hero-slider .slick-prev,
.hero-slider .slick-next {
    z-index: 10;
    width: 0;
    height: 0;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

/* Freccia sinistra - triangolo che punta a sinistra, attaccato al bordo sinistro */
.hero-slider .slick-prev {
    left: 0;
    border-top: 45px solid transparent;
    border-bottom: 45px solid transparent;
    border-right: 0;
    border-left: 50px solid #0A6FB1;
}

/* Freccia destra - triangolo che punta a destra, attaccato al bordo destro */
.hero-slider .slick-next {
    right: 0;
    border-top: 45px solid transparent;
    border-bottom: 45px solid transparent;
    border-left: 0;
    border-right: 50px solid #0A6FB1;
}

.hero-slider .slick-prev:hover {
    border-left-color: #085a91;
}

.hero-slider .slick-next:hover {
    border-right-color: #085a91;
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    opacity: 1;
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.hero-slider .slick-prev:before {
    content: '\f053';
    left: -40px;
    right: auto;
}

.hero-slider .slick-next:before {
    content: '\f054';
    right: -40px;
    left: auto;
}

/* Slick Dots */
.hero-slider .slick-dots {
    bottom: 35px;
}

.hero-slider .slick-dots li button:before {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-slider .slick-dots li.slick-active button:before {
    color: #fff;
}

/* ============================================
   SECTIONS - Full width
   ============================================ */
.section-block {
    padding: 100px 0;
    width: 100%;
}

.section-alt {
    background-color: #0a6fb1;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #001829;
    margin-bottom: 12px;
}
.section-header h2 span{
	color: #0a6fb1;
}
.section-block.section-alt h2{
	 color: #FFF;
}
.section-alt.section-subtitle {
    color: #FFF;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}
.section-alt .section-subtitle {

    color: #fff;
}
/* ---------- SERVIZI ---------- */
#servizi .row.g-4 {
    align-items: stretch;
}

#servizi .row.g-4 > [class*="col-"] {
    display: flex;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-card__img {
    width: 40%;
    flex-shrink: 0;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.service-card .btn{
	text-transform: uppercase;
}
.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A3E0, #0A6FB1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.service-icon i {
    font-size: 1.3rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0A6FB1;
    margin-bottom: 10px;
}

.service-card__body > p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.82rem;
}

/* Card featured - sfondo blu, testi bianchi */
.service-card--featured .service-card__body {
    background: #0A6FB1;
}

.service-card--featured .service-card__body h3 {
    color: #fff;
}

.service-card--featured .service-card__body > p {
    color: rgba(255, 255, 255, 0.85);
}

.service-icon--light {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-cta-light {
    background-color: #fff;
    color: #0A6FB1;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

.btn-cta-light:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* ---------- GALLERIA ---------- */
.gallery-tabs {
    margin-bottom: 35px;
}

.gallery-tab {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid #ddd;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
    margin: 4px;
}

.gallery-tab:hover,
.gallery-tab.active {
    border-color: #00A3E0;
    color: #00A3E0;
    background: rgba(0, 163, 224, 0.05);
}
.section-alt .gallery-tab:hover,
.section-alt .gallery-tab.active {
    border-color: #fff;
    color: #fff;
    background: rgba(0, 163, 224, 0.05);
}
.gallery-thumb {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 111, 177, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0;
}

.gallery-hover i {
    font-size: 2.5rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover .gallery-hover {
    opacity: 1;
}

.gallery-thumb:hover .gallery-hover i {
    transform: scale(1.1);
}

/* Gallery grid gap 3px */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1.5px;
}

.gallery-grid .gallery-item {
    padding: 0 1.5px;
    margin-bottom: 3px;
    width: 33.333%;
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.gallery-item.hidden {
    display: none;
}

/* ---------- VANTAGGI ---------- */
.advantage-card {
    text-align: center;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon-bar {
    background: #6BBF59;
    width: 100%;
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.advantage-card__body {
    padding: 25px 20px;
}

.advantage-card__body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.advantage-card__body p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Partners */
.partners-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.partners-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
}

.partners-logos img {
    height: 42px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ---------- CASI STUDIO ---------- */
.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.case-card__img {
    height: 300px;
    overflow: hidden;
}

.case-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-card__img img {
    transform: scale(1.05);
}

.case-card__body {
    padding: 25px;
}

.case-card__body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0A6FB1;
    margin-bottom: 15px;
}

.case-specs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.case-spec {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    background: #F7F8FA;
    border-radius: 8px;
}

.spec-label {
    display: block;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.spec-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0A6FB1;
}

.case-card__body > p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------- CONTATTI ---------- */
.contact-form .form-control,
.contact-form .form-select {
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #00A3E0;
    box-shadow: 0 0 0 0.15rem rgba(0, 163, 224, 0.15);
}

.contact-form .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.contact-info-item > i {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A3E0, #0A6FB1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.contact-info-item strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 2px;
}

.contact-info-item p {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 0;
}

.contact-info-item a {
    color: #00A3E0;
}

.contact-info-item a:hover {
    color: #0A6FB1;
}

/* ---------- FOOTER ---------- */
.footer-main {
    background: #003f69;
    color: #fff;
    padding: 35px 0;
    font-size: 0.88rem;
    width: 100%;
}

.footer-main a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-main a:hover {
    color: #00A3E0;
}

.footer-main strong {
    color: #fff;
}

.footer-credit {
    font-size: 0.82rem;
    color: #fff;
    margin-top: 5px;
}

.footer-credit strong {
    color: #fff;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #00A3E0;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 163, 224, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0A6FB1;
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet landscape */
@media (max-width: 1199px) {
    .nav-side {
        gap: 22px;
    }

    .nav-left {
        padding-right: 30px;
    }

    .nav-right {
        padding-left: 30px;
    }
}

/* Tablet portrait */
@media (max-width: 991px) {
    /* Header mobile */
    .navbar-custom {
        height: 65px;
        padding: 0 20px;
        justify-content: center;
    }

    .nav-side {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-logo-wrapper {
        padding: 12px 20px;
    }

    .header-main:not(.scrolled) .nav-logo-wrapper {
        padding: 15px 22px;
        margin-bottom: -20px;
    }

    .nav-logo-wrapper img {
        height: 45px;
    }

    .header-main.scrolled .nav-logo-wrapper img {
        height: 35px;
    }

    /* Hero */
    .hero-section {
        margin-top: 65px;
    }

    .hero-slide {
        height: 70vh;
        min-height: 450px;
    }

    .hero-content {
        padding: 0 0 50px 70px;
        margin: 0;
    }

    /* Sections */
    .section-block {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container-fluid {
        padding-left: 25px;
        padding-right: 25px;
    }

    /* Service cards - stack vertically on tablet */
    .service-card {
        flex-direction: column;
    }

    .service-card__img {
        width: 100%;
        height: 180px;
        min-height: auto;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .navbar-custom {
        height: 60px;
        padding: 0 15px;
    }

    .nav-logo-wrapper {
        padding: 10px 16px;
    }

    .header-main:not(.scrolled) .nav-logo-wrapper {
        padding: 12px 18px;
        margin-bottom: -15px;
    }

    .nav-logo-wrapper img {
        height: 38px;
    }

    .header-main.scrolled .nav-logo-wrapper img {
        height: 30px;
    }

    /* Hero */
    .hero-section {
        margin-top: 60px;
    }

    .hero-slide {
        height: 65vh;
        min-height: 400px;
    }

    .hero-content {
        padding: 0 15px 80px 55px;
        max-width: 100%;
        margin: 0;
    }

    /* Dots spostati più in basso per non sovrapporsi al bottone */
    .hero-slider .slick-dots {
        bottom: 18px;
    }

    .btn-cta {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .hero-slider .slick-prev {
        border-top-width: 30px;
        border-bottom-width: 30px;
        border-left-width: 35px;
    }

    .hero-slider .slick-next {
        border-top-width: 30px;
        border-bottom-width: 30px;
        border-right-width: 35px;
    }

    .hero-slider .slick-prev:before {
        left: -28px;
        font-size: 12px;
    }

    .hero-slider .slick-next:before {
        right: -28px;
        font-size: 12px;
    }

    /* Sections */
    .section-block {
        padding: 55px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Gallery */
    .gallery-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .gallery-grid .gallery-item {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Cases */
    .case-specs {
        flex-direction: column;
        gap: 6px;
    }

    /* Partners */
    .partners-logos {
        gap: 20px;
    }

    .partners-logos img {
        height: 30px;
    }

    /* Footer */
    .footer-main {
        padding: 25px 0;
        font-size: 0.82rem;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .nav-logo-wrapper img {
        height: 32px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   CHI SIAMO - Mosaico fotografico asimmetrico
   ============================================ */
.chisiamo-text {
    font-size: 1rem;
    line-height: 1.85;
    color: #555;
}

.chisiamo-mosaic {
    display: grid;
    grid-template-columns: 56% 44%;
    grid-template-rows: 210px 170px 130px;
    gap: 10px;
    position: relative;
}

/* Immagine principale sinistra: occupa 2 righe */
.mosaic-img--main {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Immagine piccola in alto a destra */
.mosaic-img--tr {
    grid-column: 2;
    grid-row: 1;
}

/* Immagine piccola in basso a destra */
.mosaic-img--br {
    grid-column: 2;
    grid-row: 2;
}

/* Immagine orizzontale in basso, offset verso destra per asimmetria */
.mosaic-img--bottom {
    grid-column: 1 / 3;
    grid-row: 3;
    margin-left: 36px;
}

/* Stile comune alle celle del mosaico */
.mosaic-img {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
    position: relative;
}

.mosaic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
    display: block;
}

.mosaic-img:hover img {
    transform: scale(1.07);
}

/* Pallino decorativo verde sull'angolo dell'immagine in alto a destra */
.mosaic-img--tr::after {
    content: '';
    position: absolute;
    top: -9px;
    right: -9px;
    width: 32px;
    height: 32px;
    background: #6BBF59;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* Bordino decorativo blu sull'immagine principale */
.mosaic-img--main::before {
    content: '';
    position: absolute;
    bottom: 14px;
    left: -14px;
    width: 56px;
    height: 56px;
    border: 4px solid #00A3E0;
    border-radius: 10px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
}

/* Badge "Dal 2009" sull'immagine principale */
.mosaic-img--main::after {
    content: 'Dal 2009';
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0A6FB1;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(10, 111, 177, 0.35);
}

/* Responsive tablet */
@media (max-width: 991px) {
    .chisiamo-mosaic {
        grid-template-rows: 170px 140px 110px;
        gap: 8px;
        margin-top: 10px;
    }

    .mosaic-img--bottom {
        margin-left: 24px;
    }
}

/* Responsive mobile */
@media (max-width: 767px) {
    .chisiamo-mosaic {
        grid-template-columns: 58% 42%;
        grid-template-rows: 145px 120px 95px;
        gap: 6px;
        margin-top: 28px;
    }

    .mosaic-img--bottom {
        margin-left: 18px;
    }

    .mosaic-img--main::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .chisiamo-mosaic {
        grid-template-rows: 120px 100px 80px;
        gap: 5px;
    }

    .mosaic-img--tr::after {
        width: 22px;
        height: 22px;
        top: -6px;
        right: -6px;
    }
}
