/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo del sito */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #2a3d66;
    color: white;
    padding: 40px;
    text-align: center;
    border-bottom: 3px solid #fff;
}

header h1 {
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sezioni di contenuto con 2 colonne */
.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 20px;
}

.content-section {
    padding: 20px;
    flex: 1 1 calc(50% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
    color: white;
}

/* Colori dei riquadri */
.section-blue {
    background-color: #1f3c5e; /* Blu scuro */
}

.section-yellow {
    background-color: #f1c40f; /* Giallo */
    color: #333;
}

.section-green {
    background-color: #27ae60; /* Verde */
    color: white;
}

.content-section:hover {
    transform: scale(1.05);
}

.content-section h2, .content-section h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.content-section p {
    font-size: 1.1em;
}

/* Footer */
footer {
    background-color: #2a3d66;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

/* Banner Cookie */
.cookie-banner {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border-radius: 10px;
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.cookie-banner p {
    font-size: 1em;
    color: #fff;
    margin-right: 20px;
}

#accept-cookies {
    background-color: #1a7fa7;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#accept-cookies:hover {
    background-color: #003f5f;
}

/* Generatore di Password */
.password-generator {
    margin-top: 30px;
}

/* Sezione Generatore */
.generator-section {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #27ae60; /* Verde */
    color: white;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Espansione con Hover */
.generator-section:hover {
    transform: scale(1.05); /* Ingigantisce al passaggio del mouse */
}

/* Campo della password generata */
#generated-password {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #f1f7fb;
    color: #333;
    outline: none;
    cursor: not-allowed;
}

/* Container per i bottoni */
.buttons-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Bottoni */
button {
    background-color: #1f3c5e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48%;
}

button:hover {
    background-color: #003f5f;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}
/* Aggiunta il pulsante "Torna alla prima pagina" stilizzato come gli altri */
.back-button-container {
    margin-top: 20px;
    text-align: center;
}

.back-button-container button {
    background-color: #005f73;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-button-container button:hover {
    background-color: #008c94;
    transform: scale(1.05);
}

.back-button-container button:active {
    transform: scale(0.95);
}

/* Barra di forza della password */
.strength-bar {
    width: 0;
    height: 8px;
    background-color: #ccc;
    border-radius: 4px;
    margin-top: 10px;
    transition: width 0.3s ease;
}

/* Colori per la forza della password */
.weak {
    background-color: #ff3b3b; /* Rosso per debole */
}

.moderate {
    background-color: #ff9f00; /* Arancione per moderata */
}

.strong {
    background-color: #27ae60; /* Verde per forte */
}
