/* ================================================
           THOPOS - STILI PRINCIPALI CON MENU MOBILE
        ================================================ */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ================================================
           HEADER E NAVIGAZIONE
        ================================================ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 51, 38, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5));
    transform: scale(1.05);
}

.nav-container a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #00ff88;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00cc66);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ================================================
           HERO SECTION
================================================ */

.hero {
     /* CAMBIATO: da height: 100vh a min-height */
    min-height: 100vh;
    /* AGGIUNTO: padding-top per compensare header fisso */
    padding-top: 80px;
    /* AGGIUNTO: padding-bottom per sicurezza */
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #1a3326 0%, #2d5942 50%, #0f4c2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L50,50 L100,0 Z" fill="none" stroke="%23ffffff10" stroke-width="0.5"/><path d="M0,50 L50,100 L100,50 Z" fill="none" stroke="%23ffffff10" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    margin-top: -2rem;
    background: linear-gradient(45deg, #00ff88, #ffffff, #00cc66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
    font-weight: bold;
    font-style: italic;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.8));
    }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-style: italic;
    opacity: 0.8;
}

/* ================================================
           SLIDESHOW
================================================ */

.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.slide {
    width: 100%;
    height: auto;
    display: none;
}

.slide.active {
    display: block;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ================================================
           PULSANTI HERO
        ================================================ */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #00b366, #008a4d);
    color: white;
    min-width: 160px;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 179, 102, 0.4);
    background: linear-gradient(45deg, #00cc73, #009955);
}

/* ================================================
           LAYOUT GENERALE
        ================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-alt {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #2d5942;
}

/* ================================================
           FEATURE SECTIONS
        ================================================ */

.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-section:nth-child(even) {
    direction: rtl;
}

.feature-section:nth-child(even)>* {
    direction: ltr;
}

.feature-content {
    padding: 2rem 0;
}

.feature-content h2 {
    font-size: 2.5rem;
    color: #2d5942;
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #00ff88, #00cc66);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.feature-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.5);
}

.feature-image,
.video-container {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #2d5942, #1a3326);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-container:hover,
.feature-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-thumbnail,
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 136, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(0, 255, 136, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #00ff88;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* ================================================
           SEZIONE CLIENTI
        ================================================ */

.clients-container {
    overflow: hidden;
    margin: 2rem 0;
    padding: 3rem 0;
    position: relative;
}

.clients-container::before,
.clients-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-container::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.clients-container::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.clients-slider {
    display: flex;
    animation: scroll-clients 120s linear infinite;
    width: fit-content;
}

.client-logo {
    flex-shrink: 0;
    margin: 0 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 770px;
    height: 120px;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.client-logo img {
    width: 750px;
    height: 100px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.clients-container:hover .clients-slider {
    animation-play-state: paused;
}

/* ================================================
           YOUTUBE SECTION
        ================================================ */

.youtube-section {
    background: linear-gradient(135deg, #2d5942, #1a3326);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.youtube-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.youtube-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.5);
}

.youtube-icon {
    font-size: 1.25rem;
}

/* ================================================
           COOKIE POLICY
        ================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 51, 38, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h4 {
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-text p {
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-btn {
    background: linear-gradient(45deg, #00ff88, #00cc66);
    color: white;
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.info-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ================================================
           FOOTER
        ================================================ */

.footer {
    background: #1a3326;
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.social-links a:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #00ff88;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ff88;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.3);
}

/* ================================================
           ANIMAZIONI
        ================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ================================================
           MEDIA QUERIES - RESPONSIVE DESIGN
        ================================================ */

@media (max-width: 768px) {

    /* Menu Mobile */
    .nav-menu {
        position: fixed;
        top: 77px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 77px);
        background: rgba(26, 51, 38, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding-top: 3rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-menu.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-menu a {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    /* Hero responsive */
    .hero {
        padding-top: 100px;
        padding-bottom: 3rem;
        min-height: calc(100vh - 0px);
        min-height: 100dvh;
    }

    .hero-content {
        padding: 0 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 60vh;
    }

    /* Hero responsive - MODIFICA QUELLO ESISTENTE */
    .hero h1 {
        font-size: 2.5rem;
        margin-top: -1rem;  /* Modifica questo valore */
        line-height: 1.2;   /* Aggiungi questa riga */
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-section:nth-child(even) {
        direction: ltr;
    }

    .slideshow-container {
        max-width: 90%;
        margin: 1.5rem auto 0;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-btn {
        width: 200px;
    }

    .client-logo {
        width: 150px;
        height: 80px;
    }

    .client-logo img {
        width: 130px;
        height: 60px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-top: 0; /* Rimosso margin negativo */
    }

    .slideshow-container {
        max-width: 95%;
        margin: 1rem auto 0;
    }

    .client-logo {
        width: 120px;
        height: 60px;
    }

    .client-logo img {
        width: 100px;
        height: 40px;
    }

    .feature-content h2 {
        font-size: 2rem;
    }

    .feature-content p {
        font-size: 1.1rem;
    }
}
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-top: 0;
    }
}