/* RESET */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/* GENERALI */
body {
    height: 100vh;
    width: 100vw;
    background-image: url(./images/fazzolettone.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.container {
    flex: 1;
}

.collegamenti {
    text-decoration: none;
    color: #2600ff;
}

.collegamenti:hover {
    background-image: linear-gradient(#ff0000, #2600ff);
    color: #ffffff;
}

a.download-link {
    text-decoration: none;
    display: inline-block;
    padding: 8px;
    text-decoration: none;
    border-radius: 16px;
    transition: background-color 0.3s ease;
    background-color: #62ff0065;
    justify-items: center;
    color: #ffffff;
}

a.download-link:hover {
    background-image: linear-gradient(#ff0000, #2600ff);
    color: #ffffff;
}

a.download-link i {
    margin-right: 8px;
}

.text {
    width: 50%;
    margin-top: 24px;
    margin-left: 25%;
    background-color: #af020236;
    color: #ffffff;
    border-radius: 24px;
    padding: 16px;
}

.blog {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #03030342;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 8px;
}

.image {
    width: 25%;
    margin: 0 10px;
    border-radius: 50%;
}

.text-h1 {
    color: rgb(66, 60, 60);
    text-align: center;
    width: 100%;
    padding: 8px;
}

.text-admin {
    width: 100%;
    margin-top: 24px;
    background-color: #af020236;
    color: #000000;
    border-radius: 24px;
    padding: 16px;
    align-items: center;
    text-align: center;
}

hr {
    margin: 30px 0;
    border: 0;
    height: 1px;
    background: #ccc;
}

.main {
    max-width: 800px;
    margin: auto;
    background-image: linear-gradient(rgba(21, 0, 255, 0.348), rgba(250, 249, 249, 0.194),rgba(255, 0, 0, 0.202));
    padding: 32px;
    border-radius: 24px;
    margin-bottom: 16px;
    margin-top: 16px;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px, 16px;
    width: 100%;
}
/* LOGO */
.logo {
    display: flex;
}

.scritta {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 50px;
    color: #ffffff;
    margin-top: 20px;
}

.scritta.red {
    text-shadow: 3px 2px 3px #ff0000;
}

.scritta.blu {
    text-shadow: 3px 2px 3px #2600ff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;         /* o 0 se proprio in alto */
    right: 20px;      /* distanza dal bordo destro */
    left: auto;       /* non serve ma va bene esplicitarlo */
    transform: none;  /* elimina il centramento */
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(220, 218, 218, 0.9));
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-radius: 8px;
    width: auto;
    z-index: 1000;
}

.navbar ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 0 8px;
}

.navbar a {
    text-transform: uppercase;
    font-family: "Comic Sans MS", cursive;
    font-size: 20px;
    font-weight: 600;
    color: #00185a;
    text-decoration: none;
    transition: all 0.4s ease;
}

.navbar ul li a:hover {
    background-image: linear-gradient(#ff0000, #2600ff);
    color: #ffffff;
}

a.current {
    color: #2600ff;
}

/* FOOTER */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    padding: 16px 0;
    font-family: "Comic Sans MS", cursive;
    letter-spacing: 1px;
    border: 1px solid #ff0000;
    background-image: radial-gradient(rgba(21, 0, 255, 0.202), rgba(255, 0, 0, 0.053));
    font-size: 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LOGO */
.logo-footer {
    width: 100%px;
    height: auto;
}

/* SCRITTA CON BACKGROUND */
.address {
    background-color: #2600ff;
    padding: 8px 16px;
    border-radius: 16px;
}

.address a {
    color: #fff;
    text-decoration: none;
}

.address p {
    margin: 2px 0;
}

/* CONTATTI */ 
.contatti {
    width: 80%;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    background-image: linear-gradient(rgb(255, 255, 255), rgb(207, 207, 207));
    max-width: 800px;
}

.contatto {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 10px;
    background-image: linear-gradient(rgb(255, 255, 255), rgb(210, 209, 209));
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.1);
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contatto:hover,
.section-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.foto-contatto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
}

.info-contatto h2 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
}

.info-contatto h3 {
    margin: 5px 0 0;
    font-size: 1em;
    color: #777;
}

.social_contatti {
    text-decoration: none;
}

/* LISTA */
 ol {
    padding-left: 20px;
}

ol li {
    margin: 8px 0;
    font-size: 1.1em;
    background: #eaf4f4;
    padding: 8px 16px;
    border-radius: 16px;
    transition: background 0.3s;
}

ol li:hover {
    background: #d0ebeb;
}

/* SECTION BOX */
.section-box {
    background: #b3acab72;
    border: 2px solid #cbcde4;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.section-box h2, h3 {
    text-align: center;
}

.section-box p {
    font-size: 24px;
}

.branca-image {
    width: 15%;
    height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    position: absolute;
    top: 20px;
    right: 20px;
}

.branca {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #f9fdfd;
    border: 2px solid #cbe4e4;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start; 
    margin-top: 16px;
}

.section-images {
    width: 32%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.section-images:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

iframe {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* FORM */
label {
    font-size: 24px;
}

input,
textarea {
    border-radius: 24px;
    padding: 8px;
    width: 100%;
}

.form {
    max-width: 100vh;
    margin-top: 24px;
    align-items: center;
}

fieldset {
    border-radius: 24px;
    padding: 16px;
    gap: 8px;
    background-image: linear-gradient(rgba(0, 0, 255, 0.529),rgba(255, 255, 255, 0.735), rgba(207, 207, 207, 0.318), rgba(255, 0, 0, 0.204));
    font-size: 20px;
    font-weight: 450;
    border: 2px solid rgb(221, 255, 0);
    margin-bottom: 12px;
}

legend {
    color: rgb(221, 255, 0);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input, .input-paragraph {
    position: relative;
    margin: 20px 0;
}

.form-input input,
.input-paragraph textarea {
    width: 100%;
    padding: 12px 8px;
    font-size: 16px;
    border-radius: 8px;
    outline: none;
    background: none;
}


.form-input label,
.input-paragraph label {
    position: absolute;
    top: 12px;
    left: 8px;
    padding: 0 4px;
    font-size: 20px;
    pointer-events: none;
    transition: 0.4s ease;
}

.form-input input:focus + label,
.form-input input:not(:placeholder-shown) + label,
.input-paragraph textarea:focus + label,
.input-paragraph textarea:not(:placeholder-shown) + label {
    top: -15px;
    left: 8px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.input-file {
    display: flex;
    width: 100%;
    padding: 8px;
    border: 1px solid #777;
    border-radius: 8px;
}

.input-file label {
    display: flex;
}
.input-file label:hover {
    cursor: pointer;
}


.input-images {
    display: none;
    padding: 8px;
}

.input-button {
    display: block;
    width: 50%;
    padding: 8px;
    background-color: #10f00095;
    cursor: pointer;
    color: #ffffff;
    border-radius: 24px;
}

.input-button:hover {
    background-image: linear-gradient(#ff0000, #2600ff);
}

.button {
    display: flex;
    margin: auto;
    width: calc(100% - 8px);
    gap: 8px;
}

.form-button {
    padding: 16px;
    border-radius: 12px;
    display: flex;
    margin: auto;
    width: 100%;
    font-size: 20px;
    color: #00185a;
    cursor: pointer;
}

.form-button:hover {
    background-image: linear-gradient(#ff0000a7, #2600ff88);
    color: #ffffff;
}