﻿:root {
    --primary-color: #990000;
    --primary-dark: #6d0000;
    --primary-light: #c62828;
    --secondary-color: #018011; /* #38761d;*/
    --accent-color: #2d5a1a;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg-light: #f9f9f9;
    --bg-lighter: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    style attribute

{
    color: rgb(255, 255, 255);
    margin-left: 10px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    background-color: rgb(0, 131, 232) !important;
    border-color: rgba(0, 0, 0, 0);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-transform: none;
    border-radius: 4px !important;
}

--success-color: #38761d;
--shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
--shadow-md: 0 4px 16px rgba(0,0,0,0.12);
--shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

    .logo i {
        font-size: 2rem;
    }

.logoText1 {
    position: relative;
    color: var(--primary-color);
    top: -13px;
}

.logoText2 {
    top: -13px;
    position: relative;
    color: black;
}

.subTitle {
    font-size: 1.2rem !important;
    line-height: 1.2rem;
    position: relative;
    top: 1.0rem;
    left: -10.3rem;
    color: #282727;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

    .navbar.scrolled {
        box-shadow: var(--shadow-md);
    }

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



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

    .nav-menu a {
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        position: relative;
        padding: 0.5rem 0;
    }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: var(--transition);
        }

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

.nav-cta {
    background: var(--secondary-color);
    color: white !important;
    padding: 0.7rem 0.7rem !important;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(56, 118, 29, 0.3);
}

    .nav-cta:hover {
        background: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(56, 118, 29, 0.4);
    }

    .nav-cta::after {
        display: none;
    }


/* Nasconde il sottomenu di default */
.nav-menu .submenu {
    display: none;
    position: absolute;
    background: white;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    width: max-content;
    white-space: nowrap;
    z-index: 1001;
}

    /* Stile dei link del sottomenu */
    .nav-menu .submenu li a {
        display: block;
        padding: 0.75rem 1.5rem;
        color: var(--text-dark);
        text-decoration: none;
        white-space: nowrap;
        text-align: left !important;
        background-color:white;
    }

        .nav-menu .submenu li a:hover {
            background: var(--bg-light);
        }

/* Posiziona il sottomenu rispetto al menu principale */
.nav-menu li {
    position: relative;
    cursor: pointer;
}



.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section - Slider */
.hero {
    margin-top: 80px;
    background: rgba(248,248,248,0);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(249,249,249,0) 100%);
        opacity: 0.5;
        z-index: 1;
        pointer-events: none;
    }

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides-wrapper {
    display: flex;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    padding: 1rem 1rem;
    position: relative;
    z-index: 2;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

    .slider-dot.active {
        background: var(--primary-color);
        width: 32px;
        border-radius: 6px;
    }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

    .slider-arrow:hover {
        background: white;
        box-shadow: var(--shadow-md);
        color: var(--primary-color);
    }

    .slider-arrow.prev {
        left: 2rem;
    }

    .slider-arrow.next {
        right: 2rem;
    }

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.0;
    margin-bottom: 0.6rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content h2 {
    font-size: 2.0rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 118, 29, 0.3);
}

    .btn-primary:hover {
        background: #015011;
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(56, 118, 29, 0.4);
    }

.btn-secondary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--border-color);
}

    .btn-secondary:hover {
        background: var(--bg-light);
        border-color: var(--text-dark);
    }

.btn-red {
    background-color: darkred;
    color: white;
    border: 2px solid var(--border-color);
}

    .btn-red:hover {
        transform: translateY(-3px);
        background-color: maroon;
    }

.btn-blu {
    background-color: #0083e8;
    color: white;
    border: 2px solid var(--border-color);
}

    .btn-blu:hover {
        transform: translateY(-3px);
        background-color: #0023e8;
    }

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}

    .hero-image img {
        width: 100%;
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
        min-height: 200px; /* o l�altezza minima desiderata */
    }

/* Features Section */
.features {
    padding: 2rem 1rem;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .section-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text-dark);
    }

    .section-header p {
        font-size: 1.125rem;
        color: var(--text-light);
        max-width: 1024px;
        margin: 0 auto;
    }

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 1.55rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        background: var(--primary-color);
        transition: var(--transition);
    }

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-md);
    }

        .feature-card:hover::before {
            height: 100%;
        }

.feature-icon {
    display: flex;
    color: rgb(153, 0, 0) !important;
    font-size: 30px;
    background-color: rgba(0, 0, 0, 0);
}

.feature-card h3 {
    padding-left: 0.5rem;
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Platforms Section */
.platforms {
    padding: 2rem 2rem;
}

.platforms-container {
    max-width: 1400px;
    margin: 0 auto;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.platform-card {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

    .platform-card:hover {
        background: white;
        border-color: var(--primary-color);
        transform: scale(1.02);
        box-shadow: var(--shadow-md);
    }

.platform-icon {
    font-size: 4rem;
    margin-bottom: 0rem;
    color: var(--primary-color);
}

.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    margin: 2rem;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .modal-close:hover {
        background: var(--bg-light);
        color: var(--text-dark);
    }

.modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: #cbd5e1;
        text-decoration: none;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .footer-links a:hover {
            color: #93c5fd;
            padding-left: 0.5rem;
        }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 400px !important;
    background: #9cb193 !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
    z-index: 9999 !important; /* Molto alto per essere sopra tutto */
    display: none !important;
    animation: slideUp 0.5s ease !important;
}

    .cookie-banner.active {
        display: block !important;
    }

    .cookie-banner p {
        margin-bottom: 1rem !important;
        color: var(--text-dark) !important;
    }

    .cookie-banner strong {
        color: #1e293b !important;
        font-weight: 700 !important;
    }

.cookie-buttons {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

    .cookie-buttons button {
        flex: 1 !important;
        padding: 0.75rem 1.5rem !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        transition: all 0.3s ease !important;
        min-width: 120px !important;
    }

.cookie-accept {
    background: #38761d !important;
    color: white !important;
}

    .cookie-accept:hover {
        background: #2d5a1a !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(56, 118, 29, 0.4) !important;
    }

.cookie-more {
    background: white !important;
    color: #1e293b !important;
    border: 2px solid #1e293b !important;
}

    .cookie-more:hover {
        background: #1e293b !important;
        color: white !important;
        transform: translateY(-2px) !important;
    }


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content h2 {
        font-size: 2.0rem;
        font-weight: 800;
    }

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

    .logo {
        font-size: 1.0rem;
        font-weight: 800;
        color: var(--primary-color);
        text-decoration: none;
        display: flex;
        align-items: center;
    }

        .logo i {
            font-size: 0.4rem;
        }

    .logoText1 {
        position: relative;
        color: var(--primary-color);
        top: -18px;
    }

    .logoText2 {
        top: -18px;
        position: relative;
        color: black;
    }

    .subTitle {
        font-size: 0.8rem !important;
        line-height: 0.8rem;
        position: relative;
        top: 0.8rem;
        left: -5.8rem;
        color: #282727;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }

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

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        font-weight: 800;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

        .slider-arrow.prev {
            left: 1rem;
        }

        .slider-arrow.next {
            right: 1rem;
        }

    .slider-controls {
        bottom: 1.5rem;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

        .slider-dot.active {
            width: 24px;
        }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid,
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem;
        margin: 1rem;
    }

    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .logo {
        font-size: 1.0rem;
        font-weight: 800;
        color: var(--primary-color);
        text-decoration: none;
        display: flex;
        align-items: center;
    }

        .logo i {
            font-size: 0.4rem;
        }

    .logoText1 {
        position: relative;
        color: var(--primary-color);
        top: -18px;
    }

    .logoText2 {
        top: -18px;
        position: relative;
        color: black;
    }

    .subTitle {
        font-size: 0.8rem !important;
        line-height: 0.8rem;
        position: relative;
        top: 0.8rem;
        left: -5.8rem;
        color: #282727;
    }
}
