@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700;800&display=swap');

body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding-top:20px;
    background-color: #121212;
    color: #e0e0e0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.popup-open {
    overflow: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 50px;
    position: fixed;
    width: calc(100% - 100px);
    top: 0;
    z-index: 1001;
    background-color: #121212;
    border-bottom: 2px solid #e0e0e0;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo img {
    max-height: 40px;
    padding-top: 6px;
}

.desktop-nav {
    display: flex;
}

.desktop-nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #0000ff;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.desktop-nav a:hover {
    color: #ffffff;
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1002;
    position: relative; /* Necessario per lo z-index */

}

.bar {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 5px 0;
    transition: 0.4s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #1a1a1a;
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
    z-index: 1003;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.2rem;
}


.close-menu-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-menu-btn:hover {
    color: #fff;
}


#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 50px;
    padding-top: 50px;
    background-color: #121212;
    border-bottom: 4px solid #e0e0e0;

}

.hero-text {
    width: 50%;
padding-top: 30px;
padding-bottom: 40px;


}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}


.h2  {
    display: block;
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 1.4rem;
    color: #e0e0e0;
    text-decoration-line: underline;
    text-decoration-color: #0d11b7;
    text-underline-offset: 3px;
}


.hero-image {
    width: 45%;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    animation: fadeInSlideUp 1s ease-out forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#portfolio {
    padding-top: 30px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

#metodo {
    padding-top: 60px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
}


#chi-sono {
    padding-top: 60px;
    padding-bottom: 20px;
    padding-left: 40px;
    padding-right: 40px;
}


#testimonials {
    padding-top: 30px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

#cta   {
    padding-top: 50px;
    padding-bottom: 80px;
    padding-left: 40px;
    padding-right: 40px;
}

#clientisoddisfatti {
    padding-top: 0px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

.metodo-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.metodo-image {
    width: 40%;
    flex-shrink: 0;
}

.metodo-image h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
}

.metodo-image img {
    max-width: 100%;
    border-radius: 15px;
    padding-top: 10px;
}



.metodo-text {
    width: 60%;
padding-top: 60px;
}

.metodo-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5em;
}

.metodo-text a {
    color: #fbbc05;
    text-decoration: none;
}


.portfolio-container {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
    padding-top: 40px;
    padding-bottom: 40px;
  background-color: #1a1a1a;
  border-radius: 15px;
  border: 1px solid #333;
  padding-top: 0px;
  padding-bottom: 40px;
}

.review-container {
  text-align: center;
  margin-top: 40px;
  padding: 40px 20px;
    padding-top: 40px;
    padding-bottom: 40px;
  background-color: #1a1a1a;
  border-radius: 15px;
  border: 1px solid #333;
  padding-top: 0px;
  padding-bottom: 26px;
}

.counter-container {
    text-align: center;
    margin-top: 40px;
    padding: 40px 20px;
    background-color: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
}

.counter-text {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: 700;
}

.counter-year {
    color: #fbbc05;
    font-size: 1.6rem; /* Leggermente più grande per enfasi */
}

#counter-number {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin: 10px 0;
}

#counter-caption {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fbbc05; /* Giallo Google per richiamare le recensioni */
}

/*#testimonials {
    background-color: #1a1a1a;
}*/

/* Stile per lo slider di loghi */
.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 4px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, #1a1a1a, transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, #1a1a1a, transparent);
}

.logo-track {
    display: flex;
    width: calc(250px * 14); /* 250px per slide * 14 slide totali */
    animation: scroll 40s linear infinite;
}

.slide {
    width: 250px;
    flex-shrink: 0;
    text-align: center;
}

.slide img {
    height: 100px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 20px;
    margin: 0 auto 15px;
    filter: grayscale(1) opacity(0.7);
    transition: filter 0.3s ease;
}

.slide:hover img {
    filter: grayscale(0) opacity(1);
}

.slide h3 {
    font-size: 0.9rem;
    color: #999;
}





.titolo-calltoaction {
  font-size: 1.8rem;
  font-weight: 900;
  color: #e0e0e0;
  text-decoration-line: underline;
  text-decoration-color: #0d11b7;
  text-underline-offset: 3px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-250px * 7)); /* Scorrimento di metà della larghezza totale */
    }
}

.review-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 30px 0;
    background-color: #acacac;
    border-radius: 15px;
    border: 1px solid #333;
}

.review-slider::before,
.review-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.review-slider::before {
    left: 0;
    background: linear-gradient(to right, #1a1a1a, transparent);
}

.review-slider::after {
    right: 0;
    background: linear-gradient(to left, #1a1a1a, transparent);
}

.review-track {
    display: flex;
    width: calc(350px * 10); /* 350px per recensione * 10 recensioni totali */
    animation: scroll-reviews 60s linear infinite;
}

.review-item {
    width: 330px; /* Leggermente ridotto per la spaziatura */
    flex-shrink: 0;
    padding: 20px;
    background-color: #222;
    border-radius: 15px;
    border: 1px solid #333;
    margin: 0 10px; /* Aggiunge spaziatura orizzontale */
}

.review-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.review-rating {
    color: #fbbc05; /* Giallo Google */
    margin-bottom: 10px;
}

.review-text {
    font-style: italic;
    color: #ccc;
    min-height: 100px; /* Altezza minima per allineamento */
    margin-bottom: 15px;
}

.read-more-btn {
    background-color: #fbbc05;
    color: #121212;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #e8ac00;
}

#review-popup-body p {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.6;
}



.mobile-image {
    display: none;
}


@keyframes scroll-reviews {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-350px * 5)); /* Scorrimento di metà della larghezza totale */
    }
}

.rating-summary {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    color: #ccc;
}

.rating-summary strong {
    color: #fbbc05;
}

.google-logo-container {
    text-align: center;
    margin-top: 20px;
}

.google-logo {
    height: 100px;
    width: auto;
}

#cta {
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #fff;
    color: #121212;
    text-decoration: none;
    border: 3px solid #0000ff;
    border-radius: 10px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: #e0e0e0;
}

footer {
    padding-top: 0px;
    padding-bottom: 10px; 
    padding-left: 50px;
    padding-right: 50px;
    text-align: center;
    border-top: 2px solid #e0e0e0;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid #333;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #fff;
}

/* Stili per la sezione Chi Sono */
.chi-sono-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.chi-sono-image {
    width: 40%;
    flex-shrink: 0;
}

.chi-sono-image h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
}

.chi-sono-image img {
    max-width: 100%;
    border-radius: 15px;
    padding-top: 10px;
}

.chi-sono-text {
    width: 60%;
padding-top: 60px;
}

.chi-sono-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5em;
}

.chi-sono-text a {
    color: #fbbc05;
    text-decoration: none;
}



.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px; /* desktop */
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer a,
footer a:visited {
  color: #fff;
}


footer a:hover,
footer a:focus {
  color: #0000ff;
}

.hero-text .h3-title { 
font-size: 1.4rem;
  color: #e0e0e0;
  text-decoration-line: underline;
  text-decoration-color: #0d11b7;
  text-underline-offset: 3px;
}


/*modifiche solo a cellulari*/

@media (max-width: 768px) {
    main {
        padding-top: 24px;
    }

    header {
        padding: 20px;
        width: calc(100% - 40px);
    }

    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    #hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-left: 14px;
		padding-right: 14px;
    }

    .hero-text, .hero-image {
        width: 100%;
        padding-right: 0;
    }

    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-text .h3-title {
        font-size: 1.2rem;
    }

    .h2  {
    font-size: 1.1rem;
    }

    #testimonials {
        padding: 24px 20px;
    }

    #cta {
        padding: 46px 20px;
    }

    #portfolio  {
    padding-top: 0px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    }

    #metodo  {
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 14px;
    }


    .portfolio-container {
        padding-bottom: 24px;
    }

    .metodo-content {
        flex-direction: column;
        gap: 10px;
    }


    .metodo-image, .metodo-text {
        width: 100%;
    }

    .metodo-text {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .chi-sono-content {
        flex-direction: column;
        gap: 10px;
    }

    .chi-sono-image, .chi-sono-text {
        width: 100%;
    }

    .chi-sono-text {
        padding-top: 0px;
        padding-bottom: 0px;
    }



    .counter-container {
        margin-top: 10px;
    }

    #chi-sono  {
   	    padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
	    padding-bottom: 0px;
    }

   .review-container {
        margin-top: 10px;
    }

    .review-slider {
        padding-top: 20px;
        padding-bottom: 20px;
    }

   footer  {
		padding-left: 20px;
        padding-right: 20px;
        font-size: 14px !important;
    }


/* Video Mobile: full width ma con 20px di margine laterale */
  .video-wrapper {
    max-width: calc(100vw - 40px); /* 20px per lato */
    width: calc(100vw - 40px);
    margin: 0 auto; /* centra il blocco */
  }


}
