/* ================= TYPOGRAPHY ================= */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.footer-links a {
    font-family: "Cinzel", serif;
}

body,
p,
li,
a,
.nav-link {
    font-family: "Roboto", sans-serif;
}

blockquote,
.citazione,
.quote {
    /* Font speciale per citazioni */
    font-family: "Special Elite", cursive;
}

body {
    background-color: #fdf0d5;
    color: #003049;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ================= NAVBAR ================= */
.navbar {
    background-color: #fdf0d5;
    color: #003049;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    z-index: 1000;
}

.navbar-dark .navbar-nav .nav-link {
    color: #003049;
    transition: 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    background: #780000;
    transition: width 0.3s ease;
    bottom: -5px;
    left: 0;
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #780000;
}

.navbar-brand img {
    height: 50px;
}

#custom-toggler {
    color: #003049;
    border: none;
    background: transparent;
    font-size: 24px;
}

#custom-toggler:hover {
    color: #780000;
}

#custom-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* ================= FOOTER ================= */
footer {
    background-color: #001925;
    color: #bbb;
    font-family: "Cinzel", serif;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem 1.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1 1 0;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    align-items: flex-start;
    justify-content: flex-start;
}

.logo-img {
    max-width: 500px; /* aumenta la dimensione massima del logo */
    width: 100%; /* permette al logo di occupare tutta la colonna se necessario */
    height: auto;
    margin-bottom: 10px;
    filter: grayscale(20%);
    /* opzionale: fissa l'altezza per un logo ancora più grande */
    /* height: 120px; */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-info {
    align-items: flex-end;
}

.footer-branding {
    margin-bottom: 10px;
    text-align: right;
    width: 100%;
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-details {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

.footer-contact {
    text-align: right;
    font-size: 13px;
    margin-bottom: 10px;
    width: 100%;
}

.footer-contact a {
    color: #bbb;
    text-decoration: underline dotted;
    transition: color 0.3s;
    word-break: break-all;
}

.footer-contact a:hover {
    color: #fff;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 8px 0 8px 0;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
}

.social-links a {
    color: #bbb;
    font-size: 22px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #fff;
    transform: scale(1.12);
}

.copyright {
    text-align: right;
    margin-top: 10px;
    opacity: 0.7;
    font-size: 12px;
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .footer-col,
    .footer-info,
    .footer-logo {
        align-items: flex-start !important;
        text-align: left !important;
    }
    .footer-branding,
    .footer-contact,
    .social-links,
    .copyright {
        text-align: left !important;
        align-items: flex-start !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    .logo-img {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
}
