/* 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: 70px !important;
    padding: 10px 10px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !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;
    /* Define CSS custom properties for maintainability */
    --shadow-primary: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-secondary: 0 8px 16px rgba(0, 0, 0, 0.2);
    --blur-strength: blur(10px);

    /* Optimized box-shadow with reduced layers for better performance */
    box-shadow: var(--shadow-primary), var(--shadow-secondary);

    /* Backdrop filter with vendor prefix and fallback for unsupported browsers */
    -webkit-backdrop-filter: var(--blur-strength);
    backdrop-filter: var(--blur-strength);

    /* Fallback for browsers without backdrop-filter support */
    @supports not (backdrop-filter: blur(1px)) {
        background-color: rgba(0, 123, 255, 0.9);
        /* Slightly more opaque fallback */
    }
}

.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;
    }
}

/

.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: #ffffff;
    font-size: 1.8rem;
    margin-top: 0;
    padding-bottom: 10px;

    -webkit-text-stroke: 1px #000000;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

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: 10px 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;
} */

/* Stili per il layout del contenuto in sviluppo-sostenibile.php */
.content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
}

.text-content {
    flex: 1;
}

.sdg-table {
    background-color: #C72030;
    padding: 0;
    margin: 0;
    color: #FFF;
    font-size: 16px;
    line-height: 1.1;
    font-weight: bold;
    width: 200px;
    height: 200px;
    display: table;
    table-layout: fixed;
}

.sdg-table td {
    padding: 0;
    margin: 0;
    border: none;
}

#istruzione-4 {
    font-size: 55px;
    /* Double of 1.5em */
    width: 20px;
    align-items: center;
    justify-content: center;
}

#istruzione-qualita {

    font-size: 23px;
    height: 60px;
    word-wrap: break-word;
}

.sdg-image {
    flex-shrink: 0;
    max-width: 200px;
    text-align: center;
}

.sdg-logo {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .sdg-image {
        max-width: 150px;
    }
}

/* Stili per il bottone e i loghi partner */
.buy-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #0056b3;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .partner-logos {
        flex-direction: column;
        gap: 5px;
    }

    .partner-logos img {
        height: 80px;
    }
}

/* Styles for #spot-carte image */
#spot-carte {
    text-align: center;
    position: relative;
}

#spot-carte-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.spot-scritta-welcome {
    position: absolute;
    top: 10px;
    left: 55px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

#spot-scritta {
    position: absolute;
    bottom: 38px;
    left: 38px;
    color: black;
    padding: 5px 10px;

}
.spot-scritta {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    -webkit-text-stroke: 1px black;

}

/* Desktop styles */
@media (min-width: 768px) {
    #spot-carte-img {
        max-width: 768x;
        /* Fixed maximum width for desktop */
        width: auto;
        height: auto;
    }

    .spot-scritta-welcome {
        font-size: 120px;
    }

    #spot-scritta {
        font-size: 16px;
        padding: 10px 15px;
        bottom: 40px;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    #spot-carte-img {
        width: 100vw;
        height: auto;
        object-fit: contain;
    }

    .spot-scritta-welcome {
        font-size: 60px;
        top: 15px;
        left: 35px;
    }

    #spot-scritta {
        font-size: 12px;
        padding: 5px 8px;
        bottom: 40px;
        left: 35px; 
    }
}

.giallo {
    color: yellow;
}

.text-animated {
    position: absolute;
    top: 10px;
    left: 55px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
    /* Definiamo un gradiente che contenga tutti i colori della transizione */

    /* Ingrandiamo il background per poterlo "muovere" */
    background-size: 400% 400%;

    /* Mascheramento del testo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Animazione */
    animation: color-change 4s infinite;
}

@keyframes color-change {
    0%, 50% {
        background: #ffff00;

    }
    50%, 100% {
        background: #ff0000;

    }
}
}