@font-face {
    font-family: 'Raleway';
    src: url('/assets/fonts/Raleway-100.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway';
    src: url('/assets/fonts/Raleway-200.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway';
    src: url('/assets/fonts/Raleway-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
  --color-orange: #FFA500;
}

@font-face {
    font-family: 'Fairlady';
    src: url('/assets/fonts/Fairlady.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Optional: Controls how the font is displayed while loading */
}


@font-face {
    font-family: 'Lucida-Handwriting-Italic';
    src: url('/assets/fonts/Lucida-Handwriting-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Optional: Controls how the font is displayed while loading */
}

@font-face {
    font-family: 'Mickle';
    src: url('/assets/fonts/Mickle.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Optional: Controls how the font is displayed while loading */
}

@font-face {
    font-family: 'Urbanist';
    src: url('/assets/fonts/Urbanist-VariableFont_wght') format('truetype');
    font-style: normal;
    font-display: swap; /* Optional: Controls how the font is displayed while loading */
}

@font-face {
    font-family: 'Urbanist-Italic';
    src: url('/assets/fonts/Urbanist-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-display: swap; /* Optional: Controls how the font is displayed while loading */
}

html {
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

section.background {
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url("/assets/images/babiebg.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    height: 100vh;
    box-sizing: border-box;
    padding-top: 4.5rem;
}

div.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4.5rem;
    z-index: 100;
    color: #fff;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    box-sizing: border-box;
}

div.topbar.scrolled,
div.topbar.menu-open {
    background-color: #635f5f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.topbar-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}



.container {
    width: 80%;
    margin: auto;
    padding: 3rem;
    box-sizing: border-box;
}

.bio {
    background: #fff;
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    opacity: .75;
}

.bio-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}
.bio-links a {
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
}
.bio-links a:hover {
    color: var(--color-orange);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0;
}

.menu a {
    color: #000;
    text-decoration: none;
    padding: 0.4rem 2rem;
}

@media (max-width: 480px) {
    .textbutton {
        font-size: 1.8rem;
    }
    .menu a {
        padding: 0.75rem 1.25rem;
    }
}

.menu a:hover {
    color: var(--color-orange);
}

div.topbar-brand, a.topbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
img.foxlogo {
    width: 4rem;
    filter: invert(1) hue-rotate(180deg);
}
div.foxtitle {
    position: relative;
    top: 0.5rem;
    text-align: left;
}
span.firstname {
    font-family: 'Fairlady', serif;
    font-size: 1.5rem;
    line-height: 1;
    text-transform: capitalize;
}
span.lastname {
    font-family: 'Fairlady', serif;
    font-size: 1.6rem;
    position: relative;
    top: -0.7rem;
    left: 0.6rem;
}

.textbutton {
    font-family: 'Fairlady', serif;
    font-weight: bold;
    font-size: 2rem;
}

div.bio p {
    text-align: justify;
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0;

}

div.photo-container {
    position: absolute;
    top: 1rem;
    right: 5rem;
}
img.profile-photo {
    height: 5rem;
}

div.language-selector {
    white-space: nowrap;
}

nav.topbar-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}
nav.topbar-nav a + a::before {
    content: '·';
    padding: 0 0.6rem;
    opacity: .5;
    font-weight: 600;
}
nav.topbar-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
nav.topbar-nav a:hover {
    color: var(--color-orange);
}
span.langsel {
    font-weight: 400;
}
span.langsel:hover {
  color: var(--color-orange);
  cursor: pointer;
}
span.langsel.selected {
    font-weight: 600;
}

html body:not([data-language="en"]) .en {
    display: none;
}
html body:not([data-language="it"]) .it {
    display: none;
}

div.title-banner {
    font-family: 'Raleway', sans-serif;
    color: #FFF;
    text-decoration: none;
    position: relative;
    top: 5rem;
    max-width: 100%;
    overflow: hidden;
    padding: 0 1rem;
    box-sizing: border-box;
}

div.title-banner a {
    color: #FFF;
    text-decoration: none;
    font-weight: 200;
}
div.title-banner div.title-top {
    font-size: 1rem;
    margin-bottom: -1rem;
}
div.title-banner div.title-main {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    margin-top: 1rem;
}


/* ================================================================
   Section listing page
   ================================================================ */
.section-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.section-back {
    font-size: 1.5rem;
    color: #888;
    text-decoration: none;
    line-height: 1;
}
.section-back:hover { color: var(--color-orange); }

.section-social {
    margin-left: auto;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.section-social-link {
    color: #aaa;
    transition: color 0.2s;
    line-height: 0;
}
.section-social-link:hover { color: var(--color-orange); }
.section-social-link svg {
    width: 1.8rem;
    height: 1.8rem;
}

.section-title {
    font-family: 'Fairlady', serif;
    font-size: 2.8rem;
    margin: 0;
    line-height: 1;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-card > a {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    transition: box-shadow 0.2s;
}
.article-card > a:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.article-card-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 97px;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #eee;
}
.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.article-type {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-orange);
}

.article-card-title {
    font-family: 'Fairlady', serif;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
    color: #111;
}

.article-card-subtitle {
    font-size: 0.92rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.article-card-date {
    font-size: 0.82rem;
    color: #aaa;
    margin-top: 0.4rem;
}

.article-list-empty {
    padding: 3rem;
    color: #aaa;
    text-align: center;
}

/* ================================================================
   Single article page
   ================================================================ */
.article-breadcrumb {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}
.article-breadcrumb a { color: #aaa; text-decoration: none; }
.article-breadcrumb a:hover { color: var(--color-orange); }

.article-full {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem;
}

.article-full-title {
    font-family: 'Fairlady', serif;
    font-size: 2.5rem;
    margin: 0.4rem 0 0.6rem;
    line-height: 1.15;
}

.article-full-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 0.6rem;
}

.article-full-date {
    display: block;
    font-size: 0.82rem;
    color: #aaa;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.article-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.article-photo {
    margin: 0;
    flex: 1 1 calc(50% - 0.375rem);
}
.article-photo:only-child { flex: 1 1 100%; }

.article-photo img {
    width: 100%;
    height: auto;
    border-radius: 0.4rem;
    display: block;
}

.article-photo figcaption {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 0.3rem;
    text-align: center;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #222;
}
.article-body p   { margin: 0 0 1.25em; }
.article-body a   { color: var(--color-orange); }
.article-body h2,
.article-body h3  { font-family: 'Fairlady', serif; }

/* ================================================================
   Contact page
   ================================================================ */
.contact-page { max-width: 600px; }

.contact-title {
    font-family: 'Fairlady', serif;
    font-size: 2.8rem;
    margin: 0 0 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-field input,
.contact-field textarea {
    padding: 0.65rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--color-orange);
}

.contact-field textarea { resize: vertical; }

.contact-submit {
    align-self: flex-start;
    background: var(--color-orange);
    color: #fff;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 0.4rem;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-submit:hover { background: #e69400; }

.contact-success {
    color: #3a7d44;
    background: #eafaf1;
    border: 1px solid #b2dfdb;
    padding: 1rem 1.25rem;
    border-radius: 0.4rem;
}
.contact-error {
    color: #c0392b;
    background: #fdf0ef;
    border: 1px solid #f5c6cb;
    padding: 1rem 1.25rem;
    border-radius: 0.4rem;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 600px) {
    .section-page       { padding: 5rem 1rem 3rem; }
    .article-card > a   { flex-direction: column; gap: 1rem; }
    .article-card-thumb { width: 100%; height: 200px; }
    .article-full       { padding: 1.5rem; }
    .article-full-title { font-size: 1.8rem; }
    .article-photo      { flex: 1 1 100%; }
}

@media (max-width: 640px) {
    section.background { background-attachment: scroll; }
    .container { width: 100%; padding: 1.5rem; }
    div.title-banner div.title-main { font-size: 2.2rem; }
    div.topbar { padding: 0 1rem; }
    .topbar-hamburger { display: block; }
    nav.topbar-nav {
        display: none;
        position: fixed;
        top: 4.5rem;
        right: 0;
        width: auto;
        max-width: 100vw;
        flex-direction: column;
        align-items: flex-start;
        background-color: #635f5f;
        padding: 0.75rem 1.5rem 1rem;
        box-sizing: border-box;
        gap: 0;
    }
    nav.topbar-nav.open { display: flex; }
    .topbar-hamburger { margin-left: auto; }
    nav.topbar-nav a { padding: 0.4rem 0; }
    nav.topbar-nav a + a::before { display: none; }
}