/* =========================================================
   LUCA IMMESI - FOGLIO DI STILE COMUNE A TUTTE LE PAGINE
   ========================================================= */

/* --- FONT LATO OSPITATO SUL SITO (niente server Google) --- */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('fonts/lato-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('fonts/lato-latin-700-normal.woff2') format('woff2');
}

/* FORZA LA VISIBILITA' E PREVIENE SCATTI LATERALI */
html, body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #ffffff !important;
}

html { overflow-y: scroll; }
body {
    margin: 0; padding: 0;
    font-family: 'Lato', sans-serif;
    color: #333;
}

/* Testo nascosto alla vista ma letto da Google e dagli screen reader */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Contenitore Principale */
.main-container {
    position: relative;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
}

/* --- BLOCCO HEADER --- */
.header-box {
    display: inline-block;
    text-align: center;
    margin-bottom: 40px; /* Home */
}
.page-about   .header-box { margin-bottom: 30px; }
.page-contact .header-box { margin-bottom: 15px; }
.page-privacy .header-box { margin-bottom: 60px; }

.brand-name {
    font-size: 24px;
    letter-spacing: 5px;
    font-weight: normal;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav-menu a {
    text-decoration: none;
    color: #A1A1A1;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: normal;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-menu a.active {
    color: #000000;
    font-weight: normal;
}

.nav-menu a:hover { color: #000; }

/* --- ICONE SOCIAL IN ALTO A DESTRA (grafica originale, ridisegnata in vettoriale) --- */
.social-top-right {
    position: absolute;
    top: 40px;
    right: 20px;
    display: flex;
    gap: 1px;
    z-index: 10;
}
.social-top-right a {
    display: block;
    width: 23px;
    height: 23px;
    transition: opacity 0.3s;
}
/* Effetto solo con mouse o trackpad: sul telefono le icone restano nere */
@media (hover: hover) {
    .social-top-right a:hover { opacity: 0.55; }
}
.social-top-right svg { display: block; width: 100%; height: 100%; }

/* --- FOOTER --- */
.site-footer {
    margin: 60px 0 20px 0;
    font-size: 12px;
    letter-spacing: 1px;
    color: #A1A1A1;
}
.page-contact .site-footer { margin-top: 80px; }
.page-home .site-footer { margin-top: 0; }
.site-footer a {
    color: #A1A1A1;
    text-decoration: none;
    transition: color 0.3s;
}
.site-footer a:hover { color: #000; }

/* =========================================================
   HOME
   ========================================================= */
.hero-image {
    width: 100%;
    max-width: 1160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.intro {
    max-width: 1160px;
    margin: 40px auto 0 auto;
    text-align: justify;
    text-align-last: left;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}
.intro p { margin: 0 0 12px 0; }

.news-section {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 80px;
}

.news-title {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
    margin: 16px 0 15px 0;
    text-transform: uppercase;
}

.news-links {
    line-height: 2.2;
    font-size: 14px;
}
.news-links a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.3s;
}
.news-links a:hover {
    border-bottom: 1px solid #000;
}

/* =========================================================
   ABOUT
   ========================================================= */
.bio-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 10px;
    text-align: left;
    line-height: 1.6;
    font-size: 15px;
}

.bio-image { flex: 0 0 400px; }
.bio-image img { width: 100%; height: auto; display: block; }

.bio-text { flex: 1; }
.bio-text p { margin-top: 0; margin-bottom: 15px; }
.bio-text p.tight { margin-bottom: 5px; }
/* Titoli di sezione della bio: stesso aspetto dei vecchi grassetti */
.bio-text h2 { font-size: 15px; font-weight: bold; line-height: 1.6; margin: 0 0 5px 0; }
/* Selettore lingua EN / IT */
.lang-switch { font-size: 12px; letter-spacing: 2px; color: #A1A1A1; }
.bio-text .lang-switch a { color: #A1A1A1; text-decoration: none; }
.bio-text .lang-switch a:hover { color: #000; opacity: 1; }
.lang-switch .current { color: #000; }
.bio-text ul { margin-top: 0; margin-bottom: 15px; padding-left: 20px; list-style-type: square; }
.bio-text a { color: #333; text-decoration: underline; transition: opacity 0.3s ease; }
.bio-text a:hover { opacity: 0.6; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: #fafafa;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Campo anti-spam: invisibile alle persone, i bot lo compilano e vengono scartati */
.form-trap { display: none; }

.form-note {
    font-size: 12px;
    line-height: 1.6;
    color: #888;
    margin: 0;
}
.form-note a { color: #888; }

.submit-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #333;
}

/* =========================================================
   PRIVACY
   ========================================================= */
.privacy-text {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}
.privacy-text h1 { font-size: 20px; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.privacy-text h2 { font-size: 16px; margin-top: 35px; margin-bottom: 12px; font-weight: bold; text-transform: uppercase; }
.privacy-text p, .privacy-text li { font-size: 14px; margin-bottom: 12px; }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
    .social-top-right { position: static; justify-content: center; margin: 0 0 20px 0; }
    .bio-wrapper { flex-direction: column; align-items: center; gap: 30px; }
    .bio-image { flex: 0 0 auto; max-width: 300px; }
    .submit-btn { width: 100%; align-self: center; }
    .intro { text-align: left; }
}
