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

html {
    height: 100%;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: Calibri, Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

header {
    background-color: #000000;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    height: 60px;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    background-color: #000000;
    border: 2px solid #c79f32;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #1a1a1a;
    border-color: #d4af37;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    border: 2px solid #c79f32;
    margin-top: 0;
    padding-top: 5px;
}

nav ul li:hover .submenu {
    display: block;
}

.submenu li {
    width: 100%;
}

.submenu li a {
    background-color: transparent;
    border: none;
    padding: 12px 20px;
    border-bottom: 1px solid #333;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background-color: #2a2a2a;
    border-left: 3px solid #c79f32;
}

.header-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-logos img {
    height: 50px;
    object-fit: contain;
}

/* LANGUAGE SELECTOR */
.lang-selector {
    position: relative;
    cursor: pointer;
    margin-left: 20px;
}

.lang-selector img {
    height: 30px;
    width: 45px;
    object-fit: cover;
    border: 2px solid #c79f32;
    border-radius: 3px;
    transition: border-color 0.3s ease;
}

.lang-selector:hover img {
    border-color: #d4af37;
}

.lang-dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #1a1a1a;
    border: 2px solid #c79f32;
    border-radius: 5px;
    padding: 5px;
    z-index: 1000;
}

.lang-dropdown.show {
    display: block !important;
}

/* Dropdown aperto con toggleLangDropdown() */
.lang-selector.dropdown-open .lang-dropdown {
    display: block !important;
}

.lang-dropdown img {
    height: 30px;
    width: 45px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 3px;
    transition: border-color 0.3s ease;
}

.lang-dropdown img:hover {
    border-color: #d4af37;
}

.slider-container {
    width: 100%;
    max-width: 750px;
    margin: 50px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 500px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 204, 0.7);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(0, 85, 255, 0.9);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    text-align: center;
    padding: 20px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #0055ff;
}

.logos-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logos-row img {
    max-height: 120px;
    object-fit: contain;
}

.logos-row .center-logo {
    max-height: 280px;
}

.email-section {
    text-align: center;
    padding: 10px 20px 40px;
    font-size: 20px;
}

.email-section a {
    color: #0055ff;
    text-decoration: none;
}

.email-section a:hover {
    text-decoration: underline;
}

.disclaimer-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
}

.disclaimer-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #0055ff;
}

.disclaimer-section p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 15px;
}

.problem-section {
    max-width: 1000px;
    margin: 20px auto 50px;
    padding: 0 20px;
    text-align: center;
}

.problem-section h2 {
    font-size: 26px;
    color: #c79f32;
    margin-bottom: 40px;
    line-height: 1.4;
}

.problem-image {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.problem-image img {
    max-width: 100%;
    height: auto;
    border: 3px solid #c79f32;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.risk-title {
    font-size: 28px;
    color: #c79f32;
    margin-top: 60px;
    margin-bottom: 40px;
    line-height: 1.4;
    font-weight: bold;
    text-align: center;
}

.risk-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.risk-images picture {
    width: calc(33.333% - 15px);
    max-width: 350px;
}

.risk-images img,
.risk-images picture img {
    width: 100%;
    height: auto;
    border: 2px solid #c79f32;
    box-shadow: 0 3px 15px rgba(199, 159, 50, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.risk-images img:hover,
.risk-images picture:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(199, 159, 50, 0.5);
}

.btn-soluzione {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #c79f32 0%, #d4af37 100%);
    color: #000000;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 25px rgba(199, 159, 50, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #c79f32;
}

.btn-soluzione:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(199, 159, 50, 0.6);
    background: linear-gradient(135deg, #d4af37 0%, #e6c445 100%);
}

.btn-soluzione .arrow-icon {
    height: 24px;
    width: 24px;
    transition: transform 0.3s ease;
    filter: brightness(0);
}

.btn-soluzione:hover .arrow-icon {
    transform: translateX(8px);
}

.buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.story-text {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.story-text p {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.8;
}

/* SOLUZIONE PAGE */

.soluzione-section {
    max-width: 1000px;
    margin: 80px auto 50px;
    padding: 0 20px;
    text-align: center;
}

.main-title {
    font-size: 36px;
    color: #c79f32;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.3;
}

.subtitle {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 50px;
    line-height: 1.6;
}

.images-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.images-row picture {
    width: calc(50% - 15px);
    max-width: 450px;
}

.images-row img,
.images-row picture img {
    width: 100%;
    height: auto;
    border: 2px solid #c79f32;
    box-shadow: 0 4px 20px rgba(199, 159, 50, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.images-row img:hover,
.images-row picture:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(199, 159, 50, 0.5);
}

.single-image {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.single-image img {
    max-width: 100%;
    height: auto;
    border: 3px solid #c79f32;
    box-shadow: 0 4px 20px rgba(199, 159, 50, 0.4);
}

/* USER CASE PAGES */
.usercase-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.usercase-title {
    font-size: 42px;
    color: #c79f32;
    margin-bottom: 50px;
    font-weight: bold;
    text-transform: uppercase;
}

.usercase-subtitle {
    font-size: 24px;
    color: #ffffff;
    margin-top: -30px;
    margin-bottom: 40px;
    font-style: italic;
}

.usercase-gallery {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 50px auto;
    flex-wrap: wrap;
}

.usercase-gallery picture {
    width: calc(33.333% - 20px);
    max-width: 380px;
}

.usercase-gallery img,
.usercase-gallery picture img {
    width: 100%;
    height: auto;
    border: 2px solid #c79f32;
    box-shadow: 0 4px 20px rgba(199, 159, 50, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usercase-gallery img:hover,
.usercase-gallery picture:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(199, 159, 50, 0.5);
}

.usercase-gallery-two {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px auto;
    flex-wrap: wrap;
}

.usercase-gallery-two picture {
    width: calc(50% - 15px);
    max-width: 500px;
}

.usercase-gallery-two img,
.usercase-gallery-two picture img {
    width: 100%;
    height: auto;
    border: 2px solid #c79f32;
    box-shadow: 0 4px 20px rgba(199, 159, 50, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usercase-gallery-two img:hover,
.usercase-gallery-two picture:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(199, 159, 50, 0.5);
}

/* LEGAL PAGES */
.legal-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 30px;
}

.legal-page h1 {
    font-size: 38px;
    color: #c79f32;
    margin-bottom: 10px;
    text-align: center;
}

.legal-page .last-update {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-page h2 {
    font-size: 28px;
    color: #c79f32;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-page h3 {
    font-size: 22px;
    color: #d4af37;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-page p {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-page ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-page ul li {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-page a {
    color: #c79f32;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-page a:hover {
    color: #d4af37;
    text-decoration: underline;
}

.legal-page strong {
    color: #d4af37;
}

/* CONTACT PAGE */
.contact-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 30px;
}

.contact-page h1 {
    font-size: 42px;
    color: #c79f32;
    text-align: center;
    margin-bottom: 20px;
}

.contact-subtitle {
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-info {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
    background-color: #1a1a1a;
    border: 2px solid #c79f32;
    border-radius: 10px;
}

.contact-info p {
    color: #ffffff;
    font-size: 18px;
    margin: 10px 0;
}

.contact-info a {
    color: #c79f32;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    border: 2px solid #c79f32;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #c79f32;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #000000;
    border: 2px solid #c79f32;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    font-family: Calibri, Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    color: #ffffff;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-group a {
    color: #c79f32;
    margin-left: 5px;
}

.error-message {
    display: block;
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.recaptcha-container .g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c79f32 0%, #d4af37 100%);
    color: #000000;
    border: 2px solid #c79f32;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(199, 159, 50, 0.5);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.form-message.success {
    background-color: #2d5016;
    color: #90ee90;
    border: 2px solid #90ee90;
    display: block;
}

.form-message.error {
    background-color: #501616;
    color: #ff4444;
    border: 2px solid #ff4444;
    display: block;
}

footer {
    background-color: #000000;
    padding: 30px 50px;
    margin-top: auto;
    border-top: 2px solid #c79f32;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left img {
    height: 60px;
    object-fit: contain;
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

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

.footer-links a:hover {
    color: #d4af37;
    text-decoration: underline;
}

.footer-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-right img {
    height: 50px;
    object-fit: contain;
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* HAMBURGER MENU ICON */
.hamburger {
    display: none; /* Nascosto su desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #c79f32;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Sottomenu User Case - classe per controllo apertura/chiusura */
nav ul li.submenu-open .submenu {
    display: block !important;
}

/* BOX ESPANDIBILE (ACCORDION) - Descrizioni dettagliate */
.details-box {
    background-color: #1a1a1a;
    border: 2px solid #c79f32;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 900px;
    padding: 0;
    overflow: hidden;
}

.details-toggle {
    width: 100%;
    background-color: #000000;
    color: #c79f32;
    border: none;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.details-toggle:hover {
    background-color: #2a2a2a;
    color: #d4af37;
}

.details-toggle-icon {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.details-toggle.active .details-toggle-icon {
    transform: rotate(45deg);
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 30px;
}

.details-content.active {
    max-height: 3000px; /* Valore alto per contenere tutto il contenuto */
    padding: 30px;
}

.details-content h3 {
    color: #c79f32;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.details-content h3:first-child {
    margin-top: 0;
}

.details-content h4 {
    color: #d4af37;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.details-content p {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 15px;
}

.details-content ul {
    list-style: none;
    padding-left: 0;
}

.details-content ul li {
    color: #ffffff;
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
}

.details-content ul li:before {
    content: "✓";
    color: #c79f32;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-question {
    color: #c79f32;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.faq-answer {
    color: #ffffff;
    line-height: 1.8;
    margin-left: 20px;
}

/* RESPONSIVE */
@media screen and (max-width: 1200px) {
    header {
        padding: 15px 30px;
    }

    nav ul {
        gap: 20px;
    }

    nav ul li a {
        padding: 8px 15px;
        font-size: 14px;
    }

    .logos-row {
        padding: 15px 50px 20px;
    }

    .logos-row .center-logo {
        max-height: 220px;
    }
}

@media screen and (max-width: 992px) {
    header {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

    .logo {
        height: 50px;
        order: 1;
    }

    /* Mostra hamburger icon su portrait/mobile */
    .hamburger {
        display: flex;
        order: 3;
    }

    .header-logos {
        order: 2;
    }

    .header-logos img {
        height: 40px;
    }

    .lang-selector {
        margin-left: 10px;
    }

    .lang-selector img {
        height: 25px;
        width: 37px;
    }

    .lang-dropdown img {
        height: 25px;
        width: 37px;
    }

    nav {
        order: 4;
        width: 100%;
        justify-content: center;
        /* Menu nascosto di default su mobile/portrait */
        display: none;
    }

    /* Menu visibile quando hamburger attivo */
    nav.mobile-active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    nav ul li {
        width: 80%;
        text-align: center;
    }

    nav ul li a {
        width: 100%;
    }

    .submenu {
        position: static;
        margin-top: 10px;
        width: 100%;
        /* Nascosto di default anche su mobile */
        display: none !important;
    }

    /* Sottomenu visibile quando parent ha classe submenu-open */
    nav ul li.submenu-open .submenu {
        display: block !important;
    }

    .slider-container {
        margin: 30px 20px;
    }

    .slide {
        height: 350px;
    }

    .logos-row {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px 20px;
    }

    .logos-row .center-logo {
        max-height: 180px;
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .slide {
        height: 250px;
    }

    .slider-btn {
        padding: 10px 15px;
        font-size: 18px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .logos-row img {
        max-height: 80px;
    }

    .logos-row .center-logo {
        max-height: 140px;
    }

    .disclaimer-section {
        padding: 30px 20px;
    }

    .disclaimer-section h2 {
        font-size: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }

    .problem-section h2 {
        font-size: 20px;
    }

    .risk-title {
        font-size: 22px;
        margin-top: 40px;
    }

    .risk-images {
        flex-direction: column;
        align-items: center;
    }

    .risk-images picture,
    .risk-images img {
        width: 90%;
        max-width: none;
    }

    .btn-soluzione {
        font-size: 18px;
        padding: 15px 30px;
    }

    .story-text p {
        font-size: 18px;
    }

    .main-title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 18px;
    }

    .images-row {
        flex-direction: column;
        align-items: center;
    }

    .images-row img {
        width: 85%;
        max-width: none;
    }

    .usercase-title {
        font-size: 32px;
    }

    .usercase-subtitle {
        font-size: 20px;
        margin-top: -20px;
    }

    .usercase-gallery {
        flex-direction: column;
        align-items: center;
    }

    .usercase-gallery picture,
    .usercase-gallery img {
        width: 85%;
        max-width: none;
    }

    .usercase-gallery-two {
        flex-direction: column;
        align-items: center;
    }

    .usercase-gallery-two picture,
    .usercase-gallery-two img {
        width: 85%;
        max-width: none;
    }

    .legal-page {
        padding: 0 20px;
    }

    .legal-page h1 {
        font-size: 30px;
    }

    .legal-page h2 {
        font-size: 24px;
    }

    .legal-page h3 {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    .logo {
        height: 40px;
    }

    nav ul li {
        width: 95%;
    }

    .slide {
        height: 200px;
    }

    .email-section {
        font-size: 16px;
    }

    .disclaimer-section h2 {
        font-size: 20px;
    }

    .disclaimer-section p {
        font-size: 14px;
    }

    .problem-section h2 {
        font-size: 17px;
    }

    .risk-title {
        font-size: 18px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .risk-images picture,
    .risk-images img {
        width: 100%;
    }

    .btn-soluzione {
        font-size: 16px;
        padding: 12px 25px;
        gap: 10px;
    }

    .btn-soluzione .arrow-icon {
        height: 20px;
        width: 20px;
    }

    .story-text {
        margin: 40px auto;
    }

    .story-text p {
        font-size: 16px;
    }

    .main-title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 16px;
    }

    .images-row picture,
    .images-row img {
        width: 100%;
    }

    .usercase-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .usercase-subtitle {
        font-size: 18px;
        margin-top: -15px;
        margin-bottom: 30px;
    }

    .usercase-gallery {
        margin: 30px auto;
    }

    .usercase-gallery picture,
    .usercase-gallery img {
        width: 100%;
    }

    .usercase-gallery-two {
        margin: 30px auto;
    }

    .usercase-gallery-two picture,
    .usercase-gallery-two img {
        width: 100%;
    }

    .legal-page {
        margin: 40px auto;
        padding: 0 15px;
    }

    .legal-page h1 {
        font-size: 26px;
    }

    .legal-page h2 {
        font-size: 20px;
        margin-top: 30px;
    }

    .legal-page h3 {
        font-size: 18px;
    }

    .legal-page p,
    .legal-page ul li {
        font-size: 15px;
    }

    .legal-page ul {
        margin-left: 20px;
    }

    .contact-page {
        margin: 40px auto;
        padding: 0 20px;
    }

    .contact-page h1 {
        font-size: 32px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .btn-submit {
        font-size: 16px;
    }

    .recaptcha-container .g-recaptcha {
        transform: scale(0.85);
    }

    .footer-left img,
    .footer-right img {
        height: 40px;
    }

    footer {
        padding: 20px 15px;
    }
}

/* Cookie Banner */
#rb-cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background-color: #1a1a1a;
    border-bottom: 2px solid #d4af37;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.rb-cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.rb-cookie-text {
    flex: 1;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    min-width: 200px;
}

.rb-cookie-text strong {
    color: #ffffff;
}

.rb-cookie-text a {
    color: #d4af37;
    text-decoration: underline;
}

.rb-cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.rb-btn-reject,
.rb-btn-accept {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rb-btn-reject {
    background: transparent;
    color: #ffffff;
    border: 2px solid #666666;
}

.rb-btn-reject:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.rb-btn-accept {
    background: linear-gradient(135deg, #c79f32 0%, #d4af37 100%);
    color: #000000;
    border: 2px solid #c79f32;
}

.rb-btn-accept:hover {
    box-shadow: 0 4px 15px rgba(199, 159, 50, 0.5);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    #rb-cookie-banner {
        padding: 14px 16px;
    }
    .rb-cookie-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .rb-cookie-btns {
        width: 100%;
    }
    .rb-btn-reject,
    .rb-btn-accept {
        flex: 1;
        text-align: center;
    }
}

/* ===================================
   LIGHTBOX - Modal Immagini Ingrandite
   =================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: zoom-out;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #c79f32;
}


/* Rendi le immagini cliccabili */
img:not(.logo):not(.arrow-icon):not([src*="iStock-1311448903"]):not([src*="Beca"]):not([src*="flags/"]) {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

img:not(.logo):not(.arrow-icon):not([src*="iStock-1311448903"]):not([src*="Beca"]):not([src*="flags/"]):hover {
    opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }
    
}

/* ===================================
   PULSANTE CONDIVISIONE FLOATING (ICON-ONLY)
   =================================== */

#share-button-floating {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Pulsante principale ROTONDO con icona share */
#share-button-floating .share-toggle {
    background: linear-gradient(135deg, #c79f32, #d4af37);
    color: #000;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(199, 159, 50, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#share-button-floating .share-toggle:hover {
    background: linear-gradient(135deg, #d4af37, #e0c050);
    box-shadow: 0 6px 20px rgba(199, 159, 50, 0.7);
    transform: scale(1.1);
}

#share-button-floating .share-toggle:active {
    transform: scale(0.95);
}

#share-button-floating .share-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

#share-button-floating .share-toggle.open svg {
    transform: rotate(180deg);
}

/* Menu items: pulsanti ROTONDI solo icone */
.share-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.share-menu.open {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

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

.share-menu a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.share-menu a:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.share-menu a:active {
    transform: scale(0.95);
}

.share-menu a svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

/* Colori di sfondo specifici per ogni social */
.share-menu a.facebook {
    background: #1877F2;
}

.share-menu a.whatsapp {
    background: #25D366;
}

.share-menu a.linkedin {
    background: #0A66C2;
}

.share-menu a.email {
    background: #EA4335;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    #share-button-floating {
        top: 80px;
        left: 10px;
    }

    #share-button-floating .share-toggle {
        width: 50px;
        height: 50px;
    }

    #share-button-floating .share-toggle svg {
        width: 22px;
        height: 22px;
    }

    .share-menu a {
        width: 45px;
        height: 45px;
    }

    .share-menu a svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile landscape - riduci ulteriormente */
@media (max-width: 768px) and (orientation: landscape) {
    #share-button-floating {
        top: 60px;
        left: 5px;
    }

    #share-button-floating .share-toggle {
        width: 45px;
        height: 45px;
    }

    #share-button-floating .share-toggle svg {
        width: 20px;
        height: 20px;
    }

    .share-menu a {
        width: 40px;
        height: 40px;
    }

    .share-menu a svg {
        width: 22px;
        height: 22px;
    }
}
