/* Reset di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Stili generali del body */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f6fa;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* provagiochi */
.container .prova-giochi {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: center;
    width: 100%;
    box-sizing: border-box;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    max-height: 100px;
    overflow-y: auto;
}

#cookie-banner p {
    display: inline;
    margin-right: 20px;
    max-width: 70%;
    word-wrap: break-word;
}

#cookie-banner button {
    background: #0b8700;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 80px;
    max-width: 150px;
}

#cookie-banner button:hover {
    background: #0a5700;
}

/* Header */
header {
    background: #0b8700;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    overflow: hidden;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Stili immagini generali */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
}

.logo img {
    height: 60px;
    width: auto;
    max-height: 60px;
    object-fit: contain;
}

/* Navigazione Desktop */
nav.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 0 10px;
    height: 100%;
}

nav.desktop-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1rem;
    padding: 5px 10px;
    min-width: 60px;
}

nav.desktop-nav a:hover,
header nav.desktop-nav ul li a[aria-current="page"] {
    color: #003457 !important;
}

/* Menu Hamburger (solo mobile) */
.mobile-nav-button {
    display: none; /* Nascondi su desktop, mostrato via media query */
    background: #0b8700;
    border: none;
    border-radius: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 2000;
    position: fixed;
    bottom: 15px;
    right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-nav-button span {
    display: block;
    width: 28px;
    height: 4px;
    background: #fff !important;
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-nav-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-nav-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar Mobile */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: #0b8700;
    color: #fff;
    z-index: 1999;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.mobile-sidebar .menu-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-sidebar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.mobile-sidebar a:hover,
header nav.mobile-sidebar .menu-item a[aria-current="page"] {
    color: #003457 !important;
}

.close-sidebar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* Overlay per il menu mobile */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1998;
}

.mobile-sidebar-overlay.visible {
    display: block;
}

/* Blocca lo scroll quando la sidebar è aperta */
body.no-scroll {
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0, 135, 52, 0.8), rgba(0, 135, 52, 0.8));
    overflow: hidden;
}

.hero .container {
    z-index: 2;
    position: relative;
    min-height: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    min-height: 80vh;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;
    width: auto;
    max-width: 452px;
    padding: 0;
    margin: 0;
}

.hero-overlay img {
    width: 100%;
    max-width: 452px;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #0a5700;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    display: inline-block;
    z-index: 2;
    min-width: 150px;
}

.cta-button:hover {
    background: #003457;
}

/* Sezioni principali */
.intro, .about, .products, .services, .contact, .product-detail, .policy, .sponsors, .admin-section {
    padding: 100px 0;
    position: relative;
    min-height: 400px;
}

.intro h2, .about h1, .products h1, .services h1, .contact h1, .product-detail h1, .policy h1, .admin-section h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #0b8700;
    line-height: 1.3;
}

/* Immagini specifiche (es. revisione) - Classe originale */
.product-demo-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin: 20px auto;
}

/* Nuova classe per banco camion */
.product-demo-image-banco-camion {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    margin: 20px auto;
}

/* Stili per il modale di login admin */
.admin-login-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

#admin-login-form {
    display: grid;
    gap: 15px;
}

#admin-login-form label {
    font-weight: 600;
    text-align: left;
}

#admin-login-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    min-height: 40px;
}

#admin-login-form button {
    background: #0b8700;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    min-width: 150px;
}

#admin-login-form button:hover {
    background: #003457;
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Stili per la sezione admin */
.admin-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.admin-section .section-title {
    color: #003457;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.admin-section form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.admin-section .input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-section label {
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-section input,
.admin-section textarea,
.admin-section select,
.admin-section .file-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.admin-section input:focus,
.admin-section textarea:focus,
.admin-section select:focus,
.admin-section .file-input:focus {
    border-color: #0b8700;
    outline: none;
}

.admin-section .file-input-container {
    position: relative;
    width: 100%;
}

.admin-section .file-input {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    background: #f9f9f9;
}

.admin-section .file-input::-webkit-file-upload-button {
    visibility: hidden;
}

.admin-section .file-input::before {
    content: "Scegli file";
    display: inline-block;
    background: #0b8700;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.admin-section .file-input:hover::before {
    background: #003457;
}

.admin-section .file-input:valid::before {
    content: "File selezionato";
    background: #0b8700;
}

.admin-section .file-input:valid + .file-feedback::after {
    content: "File selezionato";
    color: #0b8700;
    font-size: 0.9rem;
    margin-left: 10px;
}

.admin-section button,
.admin-section .save-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
    padding: 10px 20px;
    margin: 0;
    background: #0b8700;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    min-height: 44px;
    line-height: 1.5;
    position: relative;
    z-index: 10;
    text-align: center;
}

.admin-section button:hover,
.admin-section .save-btn:hover {
    background: #003457;
}

.admin-section .save-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

input[type="file"] {
    display: block;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="file"]::-webkit-file-upload-button,
input[type="file"]::-ms-browse {
    background: #0b8700;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::-ms-browse:hover {
    background: #003457;
}

.admin-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.3s ease;
}

.action-btn.green {
    background: #0b8700;
}

.action-btn.blue {
    background: #003457;
}

.action-btn.red {
    background: #d32f2f;
}

.action-btn.yellow {
    background: #ffca28;
    color: #333;
}

.action-btn.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.logout-btn {
    background: #d32f2f;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #b71c1c;
}

.products-table, .prices-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.products-table th, .prices-table th {
    background: #003457;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.products-table td, .prices-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.products-table td:last-child, .prices-table td:last-child {
    text-align: center;
}

.message {
    color: #0b8700;
    text-align: center;
    margin-top: 10px;
    font-size: 1rem;
}

/* Stili per i modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-title {
    color: #003457;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #d32f2f;
}

.input-group {
    margin-bottom: 15px;
}

.input-field, .textarea-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-field:focus, .textarea-field:focus {
    border-color: #0b8700;
    outline: none;
}

.textarea-field {
    height: 120px;
    resize: vertical;
}

.save-btn {
    background: #0b8700;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.save-btn:hover {
    background: #003457;
}

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

.password-container .input-field {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #003457;
}

/* Policy Section */
.policy h2 {
    font-size: 1.8rem;
    margin: 20px 0 10px;
    color: #333;
}

.policy p, .policy ul {
    margin-bottom: 20px;
    font-size: 1rem;
}

.policy ul {
    list-style: disc;
    margin-left: 40px;
}

.policy a.cta-button {
    display: block;
    margin: 30px auto;
    text-align: center;
    max-width: 200px;
    min-width: 120px;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    min-height: 300px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.about-image {
    flex: 0 0 auto;
    max-width: 1000px;
    min-width: 200px;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 1000px;
    border-radius: 10px;
    object-fit: contain;
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    min-height: 300px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 350px;
    max-height: 500px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    min-height: 100px;
}

.product-card h2 {
    font-size: 1.5rem;
    margin: 15px 20px;
    word-wrap: break-word;
}

.product-card p {
    margin: 0 20px 20px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 100px;
}

.product-card .cta-button {
    margin: 0 auto 20px;
    align-self: center;
    min-width: 120px;
}

/* Product Detail Section */
.product-detail ul {
    list-style: disc;
    margin: 20px 40px;
}

.product-detail video {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    min-height: 200px;
}

.product-detail img {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 250px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    object-fit: contain;
}

/* Services Section */
.services ul {
    list-style: disc;
    margin: 20px 40px;
}

.services ul a {
    color: #0b8700;
    text-decoration: none;
    font-weight: 600;
}

.services ul a:hover {
    text-decoration: underline;
}

.services img {
    width: 100%;
    height: auto;
    max-height: 250px;
    max-width: 700px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    object-fit: contain;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    position: relative;
    min-height: 400px;
}

.contact h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #0b8700;
}

.contact form {
    max-width: 600px;
    margin: 30px auto;
    display: grid;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.contact label {
    font-weight: 600;
}

.contact input,
.contact textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    min-height: 40px;
}

.contact textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

.contact button {
    background: #0b8700;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
    width: 100%;
    min-width: 150px;
}

.contact button:hover {
    background: #003457;
}

.contact img {
    width: 100%;
    height: auto;
    max-height: 200px;
    max-width: 400px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    object-fit: contain;
}

/* Modulo nella sezione intro */
.intro form {
    max-width: 600px;
    margin: 30px auto;
    display: grid;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.intro label {
    font-weight: 600;
}

.intro input,
.intro textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    min-height: 40px;
}

.intro textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

/* Checkbox personalizzate */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    appearance: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

input[type="checkbox"]:checked {
    background-color: #0b8700;
    border-color: #0b8700;
}

input[type="checkbox"]:checked::after {
    content: '✔';
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Stili per il button del modulo intro */
.intro button {
    background: #0b8700;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
    width: 100%;
    min-width: 150px;
}

.intro button:hover {
    background: #003457;
}

/* Sponsors Section */
.sponsors {
    padding: 60px 0;
    background: #fff;
    min-height: 200px;
}

.sponsors h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #0b8700;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.sponsor-item {
    text-align: center;
    min-height: 150px;
}

.sponsor-item img {
    width: auto;
    height: auto;
    max-height: 80px;
    max-width: 150px;
    display: block;
    margin: 0 auto 10px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsor-item img:hover {
    transform: scale(1.1);
}

.sponsor-item p {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    max-width: 150px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: #0b8700;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    min-height: 100px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Accessibilità: Focus visibile */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid #0a5700;
    outline-offset: 2px;
}

/* Layout a due colonne per mappa e modulo */
.sppb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.sppb-col-sm-6 {
    flex: 1;
    min-width: 250px;
    box-sizing: border-box;
    max-width: 50%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

iframe {
    width: 100%;
    max-width: 400px;
    min-height: 200px;
    object-fit: contain;
}

/* Evidenziazione testo */
.highlight {
    background-color: #e0f2e9;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
}

/* Stili per il modal di avviso */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Poppins', sans-serif;
    min-height: 150px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    border: none;
    background: none;
}

.close-modal:hover {
    color: #0b8700;
}

#modal-title {
    font-size: 1.5rem;
    color: #0b8700;
    margin-bottom: 10px;
}

#modal-message {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Animazione di apparizione */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    nav.desktop-nav {
        display: none;
    }

    .mobile-nav-button {
        display: flex !important;
    }

    .mobile-sidebar {
        display: flex;
        flex-direction: column;
    }

    .mobile-sidebar-overlay {
        display: none;
    }

    .mobile-sidebar-overlay.visible {
        display: block;
    }

    .hero {
        min-height: 60vh;
        max-height: 80vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .hero-overlay {
        width: 90%;
        max-width: 400px;
        min-width: 200px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-overlay img {
        width: 100%;
        max-height: 200px;
        object-fit: contain;
    }

    .intro, .about, .products, .services, .contact, .product-detail, .policy, .sponsors, .admin-section {
        padding: 60px 0;
    }

    .intro img,
    .services img,
    .contact img,
    .product-detail img,
    .product-demo-image {
        max-height: 200px;
        max-width: 100%;
        object-fit: contain;
    }

    .about-image img {
        max-height: 200px;
    }

    .sponsor-item img {
        max-height: 60px;
        max-width: 120px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        max-width: 100%;
        min-width: 100%;
    }

    .logo img {
        max-height: 50px;
    }

    .hero-bg {
        min-height: 60vh;
    }

    .sppb-col-sm-6 {
        flex: 100%;
        max-width: 100%;
    }

    iframe {
        max-width: 100%;
        min-height: 150px;
    }

    .product-card img {
        max-height: 120px;
    }

    .mobile-nav-button span {
        width: 22px;
        height: 3px;
        margin: 4px auto;
        background: #fff !important;
    }

    .admin-section {
        padding: 15px;
    }

    .admin-section form {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        max-width: 100%;
    }

    .admin-section .input-group {
        min-width: 100%;
    }

    .admin-section input,
    .admin-section textarea,
    .admin-section select,
    .admin-section .file-input {
        font-size: 0.95rem;
        padding: 10px;
    }

    .admin-section button,
    .admin-section .save-btn {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        font-size: 0.95rem;
    }

    .admin-controls {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .intro h2,
    .about h1,
    .products h1,
    .services h1,
    .contact h1,
    .product-detail h1,
    .policy h1,
    .admin-section h1 {
        font-size: 2rem;
    }

    .sponsor-item img {
        max-height: 50px;
        max-width: 100px;
    }

    .mobile-nav-button {
        width: 40px;
        height: 40px;
    }

    .mobile-nav-button span {
        width: 20px;
        height: 2px;
        margin: 3px auto;
        background: #fff !important;
    }

    .mobile-sidebar {
        width: 220px;
    }

    .intro img,
    .services img,
    .about-image img,
    .product-demo-image {
        max-height: 150px;
    }

    .hero-overlay img {
        max-height: 120px;
    }

    .modal-content {
        width: 100%;
        padding: 10px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .admin-section {
        padding: 10px;
    }

    .admin-section form {
        padding: 10px;
        gap: 10px;
    }

    .admin-section input,
    .admin-section textarea,
    .admin-section select,
    .admin-section .file-input {
        font-size: 0.9rem;
        padding: 8px;
    }

    .admin-section button,
    .admin-section .save-btn {
        padding: 8px;
        font-size: 0.9rem;
    }

    .admin-section .section-title {
        font-size: 1.8rem;
    }
}

@media (min-width: 769px) {
    .mobile-nav-button,
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .hero-overlay {
        max-width: 700px;
        width: 65%;
    }

    .logo img {
        height: 45px;
        max-height: 60px;
        min-height: 30px;
    }

    nav.desktop-nav a {
        font-size: 0.95rem;
        padding: 5px 8px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero-overlay {
        max-width: 600px;
    }

    .hero-overlay img {
        max-height: 70vh;
    }
}

/* Miglioramenti Cross-Browser */
html {
    scroll-behavior: smooth;
    touch-action: manipulation;
}

img, video {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

a, button, input, textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #0b8700;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #003457;
}

/* Touch-friendly tap target */
button,
a,
input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
}

/* Protezione visiva dai pixel di rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: auto;
}