/* ================================================
           THOPOS - STILI UNIFICATI
        ================================================ */

/* 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 {
    min-height: 100vh;
    padding-top: 80px;
    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;
}

/* ================================================
           PAGE HEADER (per pagine interne)
        ================================================ */

.page-header {
    background: linear-gradient(135deg, #1a3326 0%, #2d5942 50%, #0f4c2e 100%);
    padding: 8rem 0 4rem;
    margin-top: 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::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;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ff88, #ffffff, #00cc66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    z-index: 2;
    position: relative;
}

.version-badge {
    display: inline-block;
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00ff88;
    color: #00ff88;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 1rem;
    z-index: 2;
    position: relative;
}

/* Icona caratteristiche software */
.software-features-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 1rem;
    display: block;
    z-index: 2;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Sezione slideshow rimossa - non necessaria */

/* ================================================
           PULSANTI CTA (Call to Action)
        ================================================ */

.cta-button,
.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;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.cta-button:active,
.hero-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 179, 102, 0.3);
}

/* Variante bianca per il pulsante */
.cta-button.white {
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    color: #2d5942;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button.white:hover {
    background: linear-gradient(45deg, #f8f8f8, #e8e8e8);
    color: #1a3326;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

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

/* ================================================
           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;
}

/* ================================================
           MODULI E CARATTERISTICHE PAGINA
        ================================================ */

.modules-overview {
    padding: 4rem 0;
    background: #f8f9fa;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.module-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #00cc66);
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.module-letter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.module-card h3 {
    color: #2d5942;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.module-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-category {
    margin-bottom: 4rem;
}

.feature-category h2 {
    font-size: 2.5rem;
    color: #2d5942;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #00ff88;
    display: inline-block;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid #00ff88;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-item strong {
    color: #2d5942;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.highlight-box h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.collapsible {
    background: #2d5942;
    color: white;
    cursor: pointer;
    padding: 1.5rem 2rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.collapsible:hover {
    background: #1a3326;
}

.collapsible:after {
    content: '\002B';
    color: #00ff88;
    font-weight: bold;
    float: right;
    margin-left: 5px;
    font-size: 1.8rem;
}

.collapsible.active:after {
    content: "\2212";
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
    border-radius: 0 0 10px 10px;
}

.collapsible-content.active {
    max-height: 3000px;
    transition: max-height 0.5s ease-in;
}

.collapsible-inner {
    padding: 2.5rem;
}

.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
}

.feature-table th {
    background: #2d5942;
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-weight: bold;
}

.feature-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.feature-table tr:hover {
    background: #f8f9fa;
}

.module-letter-table {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
}

/* Sezione clienti rimossa - non necessaria */

/* ================================================
           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;
}

/* Sezione cookie policy rimossa - non necessaria */

/* ================================================
           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);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================================
           MODAL E SCREENSHOT
        ================================================ */

.screenshot-wrapper:hover .zoom-overlay {
    opacity: 1 !important;
}

.image-modal {
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50%) scale(0.8); }
    to { transform: translateY(-50%) scale(1); }
}

.close-button:hover {
    color: #00ff88 !important;
    transform: scale(1.1);
    transition: all 0.2s ease;
}
.module-badge {
    display: inline-block;
    background: linear-gradient(45deg, #2d5942, #3a6b52);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(45, 89, 66, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.module-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 89, 66, 0.4);
}
/* ================================================
           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 - ottimizzato per mobile */
    .hero {
        padding-top: 90px;
        padding-bottom: 2rem;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-content {
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: calc(100vh - 150px);
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-top: 0;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Page Header responsive - ottimizzato per mobile */
    .page-header {
        padding: 6rem 0 3rem;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .software-features-icon {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .version-badge {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }

    /* Layout responsive */
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

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

    /* Feature sections responsive */
    .feature-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

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

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

    .feature-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .feature-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .feature-image,
    .video-container {
        height: 250px;
        margin-bottom: 1rem;
    }

    /* Pulsanti responsive */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-top: 2rem;
    }

    .hero-btn,
    .cta-button {
        width: 100%;
        max-width: 250px;
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
        margin-bottom: 0.5rem;
        min-width: auto;
    }

    .feature-button {
        display: block;
        width: 100%;
        max-width: 200px;
        text-align: center;
        margin: 0 auto 1rem;
    }

    /* Moduli e caratteristiche responsive */
    .modules-overview {
        padding: 3rem 0;
    }

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

    .module-card {
        padding: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .module-letter {
        font-size: 2rem;
    }

    .module-card h3 {
        font-size: 1.1rem;
    }

    .module-card p {
        font-size: 0.9rem;
    }

    .feature-category {
        margin-bottom: 3rem;
    }

    .feature-category h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .feature-content {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .feature-item {
        padding: 1.2rem;
    }

    .highlight-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .highlight-box h4 {
        font-size: 1.2rem;
    }

    .collapsible {
        font-size: 1.1rem;
        padding: 1.2rem 1.5rem;
    }

    .collapsible:after {
        font-size: 1.5rem;
    }

    .collapsible-inner {
        padding: 1.5rem;
    }

    /* Tabelle responsive */
    .feature-table {
        font-size: 0.85rem;
    }

    .feature-table th,
    .feature-table td {
        padding: 0.8rem;
    }

    /* Footer responsive */
    .social-links {
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 1rem;
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .copyright {
        font-size: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    /* Modal responsive */
    .screenshot-wrapper img {
        width: 280px !important;
        height: auto;
    }

    .modal-content {
        width: 95% !important;
        max-width: 400px !important;
        padding: 0.5rem !important;
        margin: 0 auto;
    }

    .close-button {
        font-size: 28px !important;
        right: 15px !important;
        top: 5px !important;
        width: 35px;
        height: 35px;
        line-height: 35px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Smartphone portrait - ottimizzazioni specifiche */
    .hero {
        padding-top: 80px;
        padding-bottom: 1.5rem;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-top: 0;
        margin-bottom: 0.8rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Page Header per smartphone */
    .page-header {
        padding: 5rem 0 2.5rem;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .software-features-icon {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .version-badge {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }

    /* Layout smartphone */
    .container {
        padding: 0 0.8rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    /* Feature content smartphone */
    .feature-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .feature-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .feature-image,
    .video-container {
        height: 200px;
        font-size: 1rem;
    }

    /* Pulsanti smartphone */
    .hero-btn,
    .cta-button {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
        max-width: 220px;
        min-width: auto;
    }

    .feature-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        max-width: 180px;
    }

    /* Moduli smartphone */
    .module-card {
        padding: 1rem;
    }

    .module-letter {
        font-size: 1.8rem;
    }

    .module-card h3 {
        font-size: 1rem;
    }

    .module-card p {
        font-size: 0.85rem;
    }

    .feature-category h2 {
        font-size: 1.6rem;
    }

    .feature-content {
        padding: 1.2rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .highlight-box {
        padding: 1.2rem;
    }

    .highlight-box h4 {
        font-size: 1.1rem;
    }

    .collapsible {
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }

    .collapsible:after {
        font-size: 1.3rem;
    }

    .collapsible-inner {
        padding: 1.2rem;
    }

    /* Tabelle smartphone */
    .feature-table {
        font-size: 0.8rem;
    }

    .feature-table th,
    .feature-table td {
        padding: 0.6rem;
    }

    /* Footer smartphone */
    .footer {
        padding: 2rem 0 1rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .footer-links {
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.9rem;
    }

    /* Modal smartphone */
    .screenshot-wrapper img {
        width: 240px !important;
        height: auto;
    }

    .modal-content {
        width: 98% !important;
        max-width: 320px !important;
        padding: 0.3rem !important;
    }

    .close-button {
        font-size: 24px !important;
        right: 10px !important;
        top: 5px !important;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    /* Menu hamburger ottimizzato per smartphone */
    .hamburger {
        padding: 3px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
        margin: 2.5px 0;
    }

    .nav-menu a {
        font-size: 1.3rem;
        padding: 0.8rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    /* Smartphone landscape - ottimizzazioni per schermi bassi */
    .hero {
        min-height: 100vh;
        padding-top: 70px;
        padding-bottom: 1rem;
    }
    
    .hero-content {
        min-height: calc(100vh - 120px);
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .software-features-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-buttons {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .hero-btn,
    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .page-header {
        padding: 4rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}