/* Reset generale per body e html */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Previene lo scroll orizzontale */
    width: 100%;
}

.spacer{
    height: 100px;
}

/* Per mobile specificamente */
@media screen and (max-width: 768px) {
    body {
        margin: 0 !important; /* Il !important sovrascrive eventuali altri stili */
        padding: 0 !important;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Se stai usando Bootstrap, potresti anche dover resettare il container */
    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .spacer{
        height: 50px;
    }
}

section {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    section {
       margin-left: 1vw;
       margin-right: 1vw;
        margin-bottom: 2rem;
    }
}

/* FONT */
.league-spartan-h,
.a {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.montserrat-a {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    line-height: 1.8;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}

.montserrat-a strong {
    font-weight: 500 !important;
    /* Un grassetto non troppo pesante */
}


/* NAVBAR */
.navbar {
    box-shadow: none;
    border: none;
}

.nav-link {
    color: #000 !important;
}

.nav-link:hover {
    color: #666 !important;
}

.btn-custom {
    border-radius: 55px;
    background-color: rgb(30, 39, 42);
    color: #fff;
    padding: 8px 20px;
}

.btn-custom:hover {
    background-color: #9c8349;
    color: #fff;
}

.btn-dark{
    background-color: rgb(30, 39, 42);
    color: #fff;
    padding: 8px 20px;
}



/* HERO */
.hero-section {
    position: relative;
    height: auto;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    gap: 2rem; 

}

.hero-content {
    position: relative;
    flex: 60;
    z-index: 2;
    color: rgb(0, 0, 0);
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-image: url('img/s (1).jpg');
    background-size: cover;
    background-position: center;
    min-height: 550px;
}

.hero-subcontent {
    position: relative;
    flex: 45; 
    z-index: 2;
    color: rgb(0, 0, 0);
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.heroBox {
    background-color: rgb(30, 39, 42);
    width: 100%;
    height: 30%; 
    max-height: 100px;
    border-radius: 4px;
    position: relative;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 6.5rem;
    font-weight: bold;
}

.hero-text h2 {
    font-size: 2rem;
    margin-top: 1rem;
}

/* Media queries per la responsività */
@media screen and (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 90vh;
        gap: 1rem;
        margin-bottom: 10px;
        padding-bottom: 0px;
    }
    
    .hero-content {
        min-height: 45vh;
    }
    
    .hero-subcontent {
        min-height: 45vh;
        padding: 0;
    }
    
    .hero-subcontent .container {
        max-width: 100%;
        width: 100%;
       
    }
    
    .hero-subcontent .row {
        margin: 0;
        width: 100%;
    }
    
    .hero-subcontent .col-12 {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .col-12.col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .heroBox {
        min-height: 80px;
        width: 98vw;      
        
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    
}

/*Flipcard*/
.flipcard {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1;
    min-height: 420px;
}

.flipcard:hover {
    transform: scale(1.02);
}

.flipcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    background-size: cover;
        object-fit: cover;
        border-radius: 4px;
        background-position: center;
        background-repeat: no-repeat;
        
}

.flipcard.flipped .flipcard-inner {
    transform: rotateY(180deg);
}

.flipcard-front, .flipcard-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    border-radius: 4px;
}

.flipcard-front {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}


.flipcard-back {
    background-color: #2c3e50;
    transform: rotateY(180deg);
    padding: 20px;
    color: white;
    border-radius: 4px;
}

.box-title {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    margin: 0;
    padding: 10px;
    text-shadow: 1px 1px 2px #000;
}

.box-description {
    margin: 0;
    padding: 15px;
}

@media screen and (max-width: 768px) {
    .flipcard {
        min-height: 250px;
        margin-bottom: 1rem;
    }

    .box-title {
        
        font-size: 1.5rem;
        
    }
}

/*INTRO*/
.intro-section {
    background-color: #fff;
    padding: 6rem 0;
    margin-top: 5vh;
    position: relative;
  
}

.intro-section .lead {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-section .lead:nth-child(1) {
    animation-delay: 0.2s;
}

.intro-section .lead:nth-child(2) {
    animation-delay: 0.4s;
}

.intro-section .lead:nth-child(3) {
    animation-delay: 0.6s;
}

/*BLACK BANNER*/
.growth-banner {
    background-color: rgb(30, 39, 42);
    padding: 4rem 0;
}

.growth-banner h2 {
    line-height: 1.4;
}

.growth-icon {
    transition: transform 0.3s ease;
}

.growth-icon:hover {
    transform: scale(1.1);
}


@media (max-width: 768px) {
    .growth-banner h2 {
        font-size: 1.8rem;
    }

    .growth-icon {
        height: 60px !important;
    }

    .intro-section {
        margin-top: 0;
        padding: 1rem 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
       
    }
}


/*FEATURES*/

/* Stili per la sezione features */
.features-section {
    background-color: #fff;
    padding: 4rem 0;
}

.feature-row {
    transition: all 0.3s ease;
    background-color: #fff;
    margin: 0;
    cursor: pointer;
}

.alternate-bg {
    background-color: #f5f5f5;
}

.feature-row:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1;
    position: relative;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-row:hover .feature-icon {
    transform: scale(1.2);
}

.feature-row:hover h3 {
    color: #9c8349; /* Colore oro/bronzo per il titolo in hover */
}

.feature-text {
    font-size: 1.1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Animazione del testo in hover */
.feature-row:hover .feature-text {
    transform: translateX(10px);
}

/* Stili responsive */
@media (max-width: 768px) {
    .feature-row {
        margin-bottom: 0 !important;
    }
    
    .feature-icon {
        height: 60px !important;
        margin-bottom: 1rem;
    }
    
    .col-md-3 h3 {
        margin-bottom: 1.5rem;
    }

    .feature-row:hover {
        transform: scale(1.01); /* Riduce la scala su mobile */
    }

    .feature-text {
       text-align: center;
    }
}

/*WHY US*/
/* Stili per la sezione Why */
.why-section {
    background-color: #fff;
    position: relative;
}

.timeline-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 1rem 0;
}

.timeline-card {
    transition: all 0.3s ease;
    padding: 2rem 0;
}

.card-image {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card-text {
    padding: 1.5rem;
}

/* Effetti hover */
.timeline-card:hover {
    transform: translateY(-5px);
}

.timeline-card:hover .card-image {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.card-text p {
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.timeline-card:hover .card-text p {
    transform: translateX(10px);
    color: #9c8349; /* Colore oro/bronzo come usato prima */
}

.aligner-title {
    background-color: rgb(30, 39, 42);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* padding: 1rem 0; */
    height: 100px;
}

.aligner-title h2 {
    color: white;
    /* padding: 1rem; */
   /*  border-radius: 5px; */
    margin-bottom: 0;
    font-size: 2.3rem;
    font-weight: bold;
    text-align: center;
}

/* Media queries */
@media (max-width: 768px) {
    .timeline-card {
        padding: 1rem 0;
    }

    .card-text {
        text-align: center;
        padding: 1rem 0;
        order: 2;
    }

    .card-image {
        order: 1;
        margin-bottom: 1rem;
    }

    .card-text.text-md-end {
        text-align: center !important;
    }

    .aligner-title {       
        height: 200px;
    }
    
    .aligner-title h2 {
        
        margin-bottom: 0;
        font-size: 2.3rem;
        font-weight: bold;
        text-align: center;
    }
}

/*DETAILS*/
/* Stili per la sezione features aligner */
.features-aligner {
    background-color: #fff;
}

.dark-banner {
    background-color: #1a1a1a;
    margin-left: -15px;
    margin-right: -15px;
}

.video-section {
    position: relative;
    overflow: hidden;
}

/* Stili per l'overlay */
.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.overlay-text {
    max-width: 800px;
    text-align: center;
}

/* Media queries */
@media (max-width: 768px) {
    .dark-banner {
        margin-left: -10px;
        margin-right: -10px;
    }

    .lead {
        text-align: center;
        margin-top: 2rem;
    }

    .overlay-content {
        padding: 1rem;
    }

    .overlay-text h4 {
        font-size: 1.2rem;
    }

    .overlay-text p {
        font-size: 0.8rem;
    }
}

.sectionH2 {
    font-size: 2rem;
    margin-top: 1rem;
}

.numIcon{
    height: 55px;
}

@media screen and (max-width: 768px) {
    .sectionH1 {
        font-size: 3.5rem;
    }

    .sectionH2 {
        font-size: 0.5rem;
    }

}

/*SERVICE*/

/* Stili per la sezione servizi */
.service-section {
    background-color: #fff;
}

.step-item {
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
    font-size: 2rem;
    font-weight: bold;
}

.step-number i {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: white;
}

.step-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li:before {
    content: "•";
    color: #9c8349;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Media queries */
@media (max-width: 768px) {
    .steps-container .col-md-1 {
        display: none !important;
    }

    .step-item {
        margin-bottom: 1rem;
    }

    .service-list {
        margin: 1rem 0;
    }
}

/*TESTIMONIALS*/
/* Stili per la sezione testimonianze */
.testimonials-slider {
    margin: 0 -15px;
}

.testimonials-slider .row {
    padding: 20px 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.avatar-wrapper {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.avatar {
    width: 50px;
    height: 50px;
    border: 3px solid white;
}

/* Stili per la sezione contatti */
.contact-info {
   width: 500px;
   z-index: 3;
}

.contact-info i {
    color: #9c8349;
    width: 24px;
}

/* Stili per i bottoni */
.btn-primary {
    background-color: #9c8349;
    border: none;
}

.btn-primary:hover {
    background-color: #806c3c;
}

/* Hide scrollbar but keep functionality */
.testimonials-slider .row::-webkit-scrollbar {
    display: none;
}

.testimonials-slider .row {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.phone-mockup{
    width: fit-content;
    object-fit: cover;
}

.columnRightTeam {
    margin-left: -25px; 
    position: relative;
    z-index: 5;
}

.columnLeftTeam {
    position: relative;
    z-index: 1;
    margin-right: -25px;
}

.line-gold {
    border-bottom: 2px solid #d4af37; 
    padding-bottom: 10px;
}


/* Media queries */
@media (max-width: 1024) {
    .testimonial-card {
        margin-right: 15px;
    }
    
    .contact-info {
        margin-top: 2rem;
        width: 100%;
    }

    .columnRightTeam {
        margin-left: 0;
        margin-right: 0;
    }

    .columnLeftTeam {
        margin-right: 0px;
    }
}
 



/*FOOTER*/
/* Stili per il footer */
.footer {
    background-color: #1a1a1a;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #9c8349 !important;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #9c8349;
    border-color: #9c8349;
}

.footer .input-group {
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.footer .form-control {
    background-color: transparent;
    border: none;
    color: white;
}

.footer .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer .form-control:focus {
    box-shadow: none;
    background-color: rgba(255,255,255,0.05);
}

.footer .btn-outline-light:hover {
    background-color: #9c8349;
    border-color: #9c8349;
}

.footer hr {
    opacity: 0.1;
}

/* Media queries */
@media (max-width: 768px) {
    .footer .social-links {
        margin-bottom: 2rem;
    }
    
    .footer h6 {
        margin-top: 1.5rem;
    }
}