@font-face {
    font-family: 'pp_editorial_newitalic';
    src: url('../fonts/ppeditorialnew-italic-webfont.woff2') format('woff2'),
         url('../fonts/ppeditorialnew-italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'pp_moriregular';
    src: url('../fonts/ppmori-regular-webfont.woff2') format('woff2'),
         url('../fonts/ppmori-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'pp_morisemibold';
    src: url('../fonts/ppmori-semibold-webfont.woff2') format('woff2'),
         url('../fonts/ppmori-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Variabili */
:root {
    --bg-light: #e6e6e6;
    --text-dark: #1A1A1A;
    --highlight-color: #8C2F39;
}

h1, h3 {
    font-family: 'pp_morisemibold';
    color: var(--text-dark);
}

h2 {
    color: var(--highlight-color);
    font-family: 'pp_morisemibold';
}

a {
    color: var(--highlight-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #C04040;
}

p {
    color: var(--text-dark);
}

.name {
    color: var(--highlight-color);
    font-family: 'pp_editorial_newitalic';
}

.bi-star-fill {
    color: var(--highlight-color);
}

/* Body */

body {
    background: url('../img/noisy-gradient-background.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}



/* Sfondo responsive per mobile - evita sgranatura */
@media (max-width: 576px) {
    body {
        background-size: cover;
        background-position: center top;
        background-attachment: scroll;
        background-repeat: no-repeat;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    body {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    body {
        background-size: cover;
        background-position: center center;
    }
}



/* Sidenav */

#sideNav {
    background: rgba(242, 212, 200, 0.2);
    border-radius: 0 20px 20px 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Link nella navbar */
#sideNav .nav-link {
    color: var(--text-dark); 
    font-family: 'pp_morisemibold';
}

/* Per lo stato attivo del link */
.nav-link.active {
    color: var(--highlight-color) !important;
}

/* Avatar */
.avatar {
    width: 12rem;
    border: 4px solid var(--highlight-color);
    padding: 3px;
    /* background: var(--highlight-color); */
}

/* Collapsed menu */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    transition: color 0.3s ease; /* Transizione fluida per il cambiamento del colore */
    border: none;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(../img/navbar-toggler-light-mode.svg);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsive: per schermi larghezza maggiore di 992px */
@media (min-width: 992px) {
    body {
        padding-top: 0;
        padding-left: 17rem;
    }

    #sideNav {
        flex-direction: column;
        width: 17rem;
        height: 100vh;
        padding-top: 20vh;
    }
}

@media (max-width: 992px) {
    .star {
        margin-bottom: 0;
    }
    
    body {
        padding-top: 80px; /* Spazio per navbar mobile */
    }
}

/* Navbar mobile migliorata */
@media (max-width: 768px) {
    #sideNav {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Classi responsive per larghezze personalizzate */
@media (min-width: 768px) {
    .w-md-90 {
        width: 90% !important;
    }
}

@media (min-width: 992px) {
    .w-lg-75 {
        width: 75% !important;
    }
}

/* Miglioramenti per mobile */
@media (max-width: 576px) {
    .display-3 {
        font-size: 3rem !important;
    }
    
    .name {
        font-size: 3.2rem !important;
    }
    
    .fs-1 {
        font-size: 1.5rem !important;
    }
    
    .min-vh-100 {
        min-height: 100vh;
        min-height: calc(100vh - 80px); /* Compensa navbar mobile */
    }
}

/* Miglioramenti per tablet */
@media (min-width: 577px) and (max-width: 991px) {
    .display-3 {
        font-size: 3.2rem !important;
    }
    
    .display-6 {
        font-size: 2.2rem !important;
    }
}

/* Icone social responsive */
@media (max-width: 576px) {
    .fa-brands {
        font-size: 1.8rem !important;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .fa-brands {
        font-size: 2.2rem !important;
    }
}

/* Altezza minima viewport invece di fissa */
.min-vh-100 {
    min-height: 100vh;
}

/* Spaziatura icone responsive */
@media (max-width: 768px) {
    .gap-responsive {
        gap: 1rem !important;
    }
}
</edits>