/* Font personalizzati */
@font-face {
    font-family: 'SpaceAge';
    src: url('font/spaceage.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Stili Generali e Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* .frame-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.frame-wrapper {
    flex-grow: 1;
    background-color: #ffffff;
} */

iframe {
    width: 100%;
    height: 90%;
    border: none;
}

.box-container {
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin: 1em;
    position: relative;
}

.box-container h3 {
    margin-top: 0;
    color: #333;
    flex-grow: 1;
    padding: 1cm;
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-container h1 {
    color: #0b2e59;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #0b2e59;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #082242;
}

.home-link {
    display: block;
    margin-top: 20px;
    color: #0b2e59;
    text-decoration: none;
}

.home-link:hover {
    text-decoration: underline;
}

/* .sviluppo {
    font-size: 0.92rem;
    color: #0b2e59;
}

.page-break {
    border-top: 2px dashed #a0a0a0;
} */

.article-title {
    font-weight: bold;
}

.pulsantone {
    box-sizing: border-box !important;
    min-height: 40px !important;
    padding: 10px 10px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 123, 255, 0.8);
    border: 2px solid #ccc !important;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    padding-bottom: 15px;
    max-width: 400px;
    backdrop-filter: blur(10px);
    margin-bottom: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
}

.pulsantone::before {
    content: "→";
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 20px;
}

.pulsantone:hover::before {
    opacity: 1;
    content: "→";
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 20px;
}

.pulsantone:hover {
    background-color: #0056b3;
}

/* Stili Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

header h1 {
    font-size: 1.8rem;
    color: #0b2e59;
    margin: 0;
}

.spot {
    font-size: 22px;
    color: #0b2e59;
}

.spot2 {
    font-size: 28px;
    color: #0b2e59;
}

.header-buttons a {
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}


.logo {
    max-width: 360px;
}

.btn-login {
    background-color: #e4e6eb;
    color: #050505;
}

.btn-login:hover {
    background-color: #d8dbe1;
}

.btn-register {
    background-color: #0b2e59;
    color: #ffffff;
}

.btn-register:hover {
    background-color: #082242;
}

.responsive-header {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
}
.logo-home {
    max-width: 300px;
    height: auto;
    margin-top: 1em;
    border-radius: 5px 5px 5px 5px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-container h2 {
    margin-top: 10px;
    font-size: 1.5rem;
}

.logoheader {
    max-width: 365px;
    height: auto;
}

@media (max-width: 767px) {
    .logoheader {
        max-width: 80%;
    }
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    border: none;
}

@media (min-width: 768px) {
    .responsive-header {
        flex-direction: row;
    }

    .logo-container {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .logo-container h2 {
        margin: 0;
    }
}

/* Stili Footer Ottimizzati per Mobile First */
footer {
    width: 100%;
    background-color: #0b2e59;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0;
    text-align: center;
    flex-shrink: 0;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-right {
    text-align: left;
    flex-grow: 0;
    flex-basis: auto;
    line-height: 1.4;
}

.footer-right p {
    margin-bottom: 5px;
}

.footer-right li {
    margin-bottom: 5px;
}

.footer-left {
    text-align: left;
    flex-grow: 1;

}

.footer-left p {
    margin-bottom: 5px;
}

.affarinet-text {
    font-family: 'SpaceAge', sans-serif;
    font-weight: normal;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
}

.affarinet-text .letter {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease, text-shadow 0.3s ease;
    color: #ffffffd0;
    position: relative;
}

.affarinet-text:hover .letter {
    animation: neon-glow 1.5s ease-in-out infinite alternate;
}

.affarinet-text:hover .letter:nth-child(1) {
    animation-delay: 0s;
}

.affarinet-text:hover .letter:nth-child(2) {
    animation-delay: 0.1s;
}

.affarinet-text:hover .letter:nth-child(3) {
    animation-delay: 0.2s;
}

.affarinet-text:hover .letter:nth-child(4) {
    animation-delay: 0.3s;
}

.affarinet-text:hover .letter:nth-child(5) {
    animation-delay: 0.4s;
}

.affarinet-text:hover .letter:nth-child(6) {
    animation-delay: 0.5s;
}

.affarinet-text:hover .letter:nth-child(7) {
    animation-delay: 0.6s;
}

.affarinet-text:hover .letter:nth-child(8) {
    animation-delay: 0.7s;
}

.affarinet-text:hover .letter:nth-child(9) {
    animation-delay: 0.8s;
}

.affarinet-text:hover .letter:nth-child(10) {
    animation-delay: 0.9s;
}

@keyframes neon-glow {
    0% {
        color: #00ffff;
        text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff, 0 0 20px #00ffff;
    }

    25% {
        color: #ff00ff;
        text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff, 0 0 20px #ff00ff;
    }

    50% {
        color: #00ffff;
        text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff, 0 0 20px #00ffff;
    }

    75% {
        color: #ff00ff;
        text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff, 0 0 20px #ff00ff;
    }

    100% {
        color: #00ffff;
        text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff, 0 0 20px #00ffff;
    }
}

.affarinet-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.affarinet-text:hover::before {
    opacity: 1;
    animation: particle-sweep 1s ease-in-out infinite;
}

@keyframes particle-sweep {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}

.affarinet-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.affarinet-text:hover::after {
    opacity: 1;
    animation: particle-burst 1s ease-in-out infinite;
}

@keyframes particle-burst {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    50% {
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }

    100% {
        width: 0;
        height: 0;
        opacity: 0;
    }
}

.affarinet-text a {
    color: #ffffffd0;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
}

.affarinet-text a:hover {
    color: #000;
    text-decoration: none;
    background-color: #ff0;
}

.footer-left a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-left a:hover {
    color: #a9c7ff;
    text-decoration: underline;
    background-color: #590b32;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    line-height: 0.8;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 0.8;
    position: relative;
}

.footer-links li::before {
    content: "→";
    position: absolute;
    left: -20px;
    opacity: 0;
}

.footer-links li:after {
    content: " ←";
    right: 20px;
    opacity: 0;
}

.footer-links li:hover::before {
    opacity: 1;
}

.footer-links li:hover:after {
    opacity: 1;
}

.footer-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #000000;
    text-decoration: underline;
    background-color: #ff0;
}


footer a:hover {
    text-decoration: underline;
}

footer small {
    font-size: 75%;
}

footer p {
    line-height: 1.1;
}

@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 20px;
    }

    .footer-right {
        text-align: left;
        flex: 1;
        line-height: 2.0;
    }

    .footer-left {
        text-align: left;
        flex: 1;
        font-size: 9px;
        line-height: 0.5;
    }
}

/* Cookie Consent Banner */
/* #cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-consent-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cookie-btn.accept {
    background-color: #4CAF50;
    color: white;
}

.cookie-btn.accept:hover {
    background-color: #45a049;
}

.cookie-btn.decline {
    background-color: #f44336;
    color: white;
}

.cookie-btn.decline:hover {
    background-color: #da190b;
} */


.header2 {
    background-color: #004d40;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-title {
    margin: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

h2 {
    color: #004d40;
    font-size: 1.8rem;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

h3 {
    color: #00796b;
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 10px;
    border-left: 4px solid #00796b;
    padding-left: 10px;
}

p,
li {
    line-height: 1.6;
    font-size: 1rem;
}

ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.content {
    padding: 20px 0;
}

.contenuto {
    max-width: 900px;
    margin: 1em auto;
    padding: 0 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

a.language-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px 5px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    background-color: #e8e8e8;
    border-radius: 8px 8px 0 0;
}

.language-selector a {
    margin: 5px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.language-selector a:hover {
    transform: scale(1.2);
}


.language-selector img {
    width: 32px;
    height: 24px;
}

.language-selector img.active-lang {
    border: 2px solid #ff9800;
}

@media (max-width: 767px) {
    .contenuto {
        margin: 10px;
        padding: 15px;
    }

    .language-selector img {
        width: 25px;
        height: 25px;
    }
}

/* Stili per documenti istruzioni - ottimizzazione codice ridondante */
/* .instructions-center {
    text-align: center;
}

.instructions-justify {
    text-align: justify;
}

.instructions-left {
    text-align: left;
}

.instructions-line-height-150 {
    line-height: 150%;
}

.instructions-line-height-200 {
    line-height: 200%;
}

.instructions-font-size-10pt {
    font-size: 10.0pt;
}

.instructions-font-size-8pt {
    font-size: 8.0pt;
}

.instructions-font-size-9pt {
    font-size: 9.0pt;
}

.instructions-font-size-9-5pt {
    font-size: 9.5pt;
}

.instructions-font-size-4pt {
    font-size: 4.0pt;
}

.instructions-font-size-2pt {
    font-size: 2.0pt;
}

.instructions-font-size-10-5pt {
    font-size: 10.5pt;
}

.instructions-font-size-11pt {
    font-size: 11.0pt;
}

.instructions-font-size-14pt {
    font-size: 14.0pt;
}

.instructions-font-size-21pt {
    font-size: 21.0pt;
}

.instructions-font-size-22pt {
    font-size: 22.0pt;
}

.instructions-font-arial {
    font-family: "Arial", sans-serif;
}

.instructions-font-times {
    font-family: "Times New Roman", serif;
}

.instructions-bold {
    font-weight: bold;
}

.instructions-underline {
    text-decoration: underline;
}

.instructions-table {
    border-collapse: collapse;
    margin-left: 1.0pt;
}

.instructions-table-cell {
    padding: 2.75pt;
    border: solid black 1.0pt;
}

.instructions-table-cell-header {
    padding: 2.75pt;
    border: solid black 1.0pt;
    background-color: #f5f5f5;
}

.instructions-table-cell-center {
    text-align: center;
    vertical-align: top;
}

.instructions-table-cell-right {
    text-align: right;
    vertical-align: top;
}

.instructions-table-cell-left {
    text-align: left;
    vertical-align: top;
}

.instructions-table-border-none {
    border-right: none;
}

.instructions-table-border-top-none {
    border-top: none;
}

.instructions-table-border-bottom-none {
    border-bottom: none;
}

.instructions-table-border-left-none {
    border-left: none;
}

.instructions-valign-top {
    vertical-align: top;
}

.instructions-valign-middle {
    vertical-align: middle;
}

.instructions-valign-bottom {
    vertical-align: bottom;
}

.instructions-width-auto {
    width: auto;
}

.instructions-height-auto {
    height: auto;
}

.instructions-page-break {
    page-break-before: always;
}

.instructions-clear-both {
    clear: both;
}

.instructions-margin-0 {
    margin: 0;
}

.instructions-padding-0 {
    padding: 0;
} */