.custom-nav-1 {
    background-color: #ffffff;
    padding: 15px 0;
    
}
.custom-nav-1 .logo-brand {
    color: #85538A;
    font-size: 24px;

}
.custom-nav-1 .nav-link {
    color: #85538A !important;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin: 0 15px;
    position: relative; /* animazione della linea */
    padding: 5px 0 !important;
}
/* La sottolineatura che si espande dal centro al passaggio del mouse */
.custom-nav-1 .nav-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #85538A;
    transform-origin: bottom center;
    transition: transform 0.3s ease-out;
}
.custom-nav-1 .nav-effect.active::after {
    transform: scaleX(1); /* La linea si allunga */
}
.custom-nav-1 .nav-link:hover {
    color: #85538A !important;
}

body {
    background-color: #FFE5B4
}

h1{
   margin-top: 10px;
    margin-bottom: 15px;
    margin-left: 30px;
    padding: 12px;
    color: #85538A;
    font-size: 40px; 
    
}
h2 {
    margin-left: 60px;
    padding: 12px;
    color:#85538A;
    font-size: 30px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 20px;
}

h3{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 30px;
    padding: 20px;
    font-size: 22px;
}

h1, h2, h3, p {
    font-family: 'Gilda Display', serif !important;
}


p {
    margin-left: 25px;
    margin-right: 25px;
    padding: 7px;
    color:#85538A;
    font-size: 22px;
}

/*PER I LINK ALL'INTERNO DEL PARAGRAFO*/
.link-mimetico {
    color: inherit !important;       /* Eredita il colore #85538A dal paragrafo */
    font-family: inherit !important; /* Eredita Gilda Display dal paragrafo */
    text-decoration: none;           /* Toglie la sottolineatura iniziale */
    font-weight: inherit;            /* Mantiene lo stesso spessore del testo */
}

/*  quando passo sopra con il mouse */
.link-mimetico:hover {
    text-decoration: underline;      /* Sotto-linea la parola solo al passaggio del mouse per far capire che si può cliccare */
}

.round-logo {
  width: 250px;
  height: 250px;
  padding: 5px;
  margin: 35px;
  border-radius: 50%; 
  /* Assicura che l'immagine non si deformi */
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.round-logo:hover {
  /* Ingrandisce il logo del 10% */
  transform: scale(1.1); 

}

@media (max-width: 768px) {
    img.round-logo[style*="float"] {
        float: none !important;    
        display: block !important; 
        margin: 20px auto !important;
    }
    
}

/*  LA CARD */
.custom-project-card {
    border: none !important;
    border-radius: 20px !important; 
    background-color: #ffffff !important;
    padding: 15px !important; /* Padding interno per testi */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
/* Effetto Hover sulla Card */
.custom-project-card:hover {
    transform: translateY(-8px) !important; /* Si solleva delicatamente */
    box-shadow: 0 20px 40px rgba(0, 143, 140, 0.12) !important; /* L'ombra si espande */
}
.badge-course {
    align-self: flex-start; /* Evita che si allarghi a tutta pagina */
    background-color: rgba(193, 154, 201, 0.08); 
    color: #85538A;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custom-project-card .card-title {
    color: #85538A; 
    font-size: 22px !important;
    font-weight: bold !important;
    margin-bottom: 12px;
    line-height: 1.3;
}
.custom-project-card .card-text {
    font-family: 'Trebuchet MS', sans-serif;
    color: #a57fa3; 
    font-size: 20px !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important; 
    padding: 0 !important;
}

/* --- IL PULSANTE --- */
.btn-primary {
    background-color: #FF751F !important; 
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 24px !important;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 15px !important;
    font-weight: bold !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(12, 128, 143, 0.15);
}

.btn-primary:hover {
    background-color:#ff9d60 !important; 
    transform: scale(1.03); /* Si ingrandisce un millimetro al click/passaggio */
    box-shadow: 0 6px 18px rgba(0, 143, 140, 0.25);
    text-decoration: none !important;
}


/*CONTENITORE PER COLLEGARE LA PAGINA DEGLI HOBBY*/
/* STILE DEL BOX PRINCIPALE */
.box-nuova-pagina {
    background: linear-gradient(135deg, rgba(133, 83, 138, 0.07) 0%, rgba(255, 117, 31, 0.07) 100%);
    border: 2px dashed rgba(133, 83, 138, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(133, 83, 138, 0.02);
}
.box-nuova-pagina:hover {
    border-color: #FF751F;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 117, 31, 0.08);
}
.box-nuova-pagina-titolo {
    font-family: 'Gilda Display', serif;
    color: #85538A;
    font-size: 24px;
    margin: 0 0 12px 0;
    font-weight: bold;
}
.box-nuova-pagina-testo {
    font-family: 'Trebuchet MS', sans-serif;
    color: #9d7ba0;
    font-size: 20px;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto 25px auto;
}
.box-nuova-pagina-btn {
    display: inline-block;
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    background-color: #FF751F;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 117, 31, 0.2);
}
.freccia-go {
    display: inline-block;
    transition: transform 0.3s ease;
}
.box-nuova-pagina-btn:hover {
    background-color: #85538A;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(133, 83, 138, 0.3);
}
.box-nuova-pagina-btn:hover .freccia-go {
    transform: translateX(5px);
}
@media (max-width: 768px) {
    .box-nuova-pagina {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .box-nuova-pagina-titolo {
        font-size: 21px;
    }
    .box-nuova-pagina-testo {
        font-size: 14px;
    }
    .box-nuova-pagina-btn {
        width: 100%; /* Il pulsante si allarga per essere cliccato meglio */
        max-width: 260px;
    }
}

/*PAGINA DEDICATA AGLI HOBBY*/
.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonne della stessa dimensione */
    gap: 10px; 
    padding: 20px 5%;
    max-width: 1000px;
    margin: 0 auto;
}
.insta-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /*le foto quadrate*/
    overflow: hidden;
    background-color: #f0f0f0;
}
.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    /* Impedisce qualsiasi interazione (non cliccabili, non trascinabili) */
    pointer-events: none; 
    user-select: none;
    transition: transform 0.5s ease;
}
.insta-item:hover img {
    transform: scale(1.05); /* zoom quando si passa sopra */
}
@media (max-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 5px; 
    }
}
@media (max-width: 480px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr); 
        padding: 5px;
    }
}

/* box hobby */
#hobby-sfasate {
    padding: 60px 0;
    background-color: #f4f4f4;
}
.titolo-sezione {
    text-align: center;
    margin-bottom: 35px;
}
/* lo sfasamento */
.hobby-wrapper {
    max-width: 900px;
    margin: 0 0 40px 5%; 
    padding: 0 20px;
}
.hobby-wrapper.sfasata-destra {
    margin-left: auto;
    margin-right: 5%;
}
.hobby-card {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    
}
.hobby-card:hover {
    transform: translateY(-5px);
}
.hobby-text {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hobby-badge {
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
    background: #FF751F;
}
.hobby-text h3 {
    margin: 0 0 15px 0;
    font-family: 'Georgia', serif;
    color: #222;
    font-size: 25.6px;
}
.hobby-text p {
    margin: 0;
    line-height: 1.7;
    color: #555;
    font-size: 18px;
}
@media (max-width: 768px) {
    .hobby-wrapper, 
    .hobby-wrapper.sfasata-destra {
        margin: 0 auto 25px auto !important; /* Centra il box nella pagina e dà spazio sotto */
        max-width: 100% !important;        
        width: 100% !important;
        padding: 0 15px;                   
        float: none !important;            
    }
    .hobby-card {
        display: block !important;         
        width: 100% !important;
        padding: 20px !important;          
        box-shadow: 0 5px 15px rgba(0,0,0,0.06) !important; 
        border-radius: 16px !important;    
    }
    .hobby-text {
        padding: 0 !important;             
        text-align: left !important;       
    }
}

.separatore-hobby {
    border: none;
    border-top: 2px dashed purple; /*dashed è la linea tratteggiata*/
    width: 50%;
    margin: 50px auto;
}


.footer-semplice {
    background-color: white; 
    color: #964499;           
    text-align: center;       
    padding: 30px 20px;        /*Spazio sopra e sotto*/
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}


/* CONTENITORE PULSANTE */
.btn-back-wrapper {
    clear: both; /* ripulire eventuali float rimasti sopra */
    padding: 20px 0;
}
.btn-torna-indietro {
    display: inline-block;
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none; /* Rimuove la sottolineatura dei link */
    background-color: #85538A;
    color: #ffffff;
    padding: 12px 30px;
    border: 2px solid #85538A;
    border-radius: 50px; /*arrotondato*/
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(133, 83, 138, 0.15);
}
.freccia-back {
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s ease;
}
.btn-torna-indietro:hover {
    background-color: #FF751F;
    border-color: #FF751F;
    color: #ffffff;
    /* Sposta leggermente il pulsante verso l'alto e aumenta l'ombra */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 117, 31, 0.3);
}
/* Effetto la freccia si sposta a sinistra */
.btn-torna-indietro:hover .freccia-back {
    transform: translateX(-4px);
}
@media (max-width: 768px) {
    .btn-torna-indietro {
        padding: 14px 40px; 
        font-size: 14px;
        width: 80%; 
        max-width: 280px;
    }
}

/*animazione titolo*/
@keyframes apparizioneFluida {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* BOX "NOW READING" */
.now-reading-box {
    background-color: rgba(133, 83, 138, 0.05); /* Lilla chiarissimo */
    border: 1px solid rgba(133, 83, 138, 0.15);
    border-radius: 20px;
    padding: 30px;
    max-width: 650px;
    margin: 30px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}
.now-reading-flex {
    display: flex;
    align-items: center;
    gap: 30px;
}
.book-cover-container {
    position: relative;
    flex-shrink: 0;
}
.book-cover {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}
.badge-reading {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FF751F; 
    color: white;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.book-status { /*SUL MIO COMODINO*/
    display: block;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #85538A; 
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}
.book-title {
    font-family: 'Gravitas One', serif; 
    font-size: 20px;
    color: #333;
    margin: 0 0 2px 0;
}
.book-author {
    font-family: 'Trebuchet MS', sans-serif;
    font-style: italic;
    color: #777;
    margin: 0 0 15px 0;
    font-size: 14px;
}
.book-comment {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}
/*Barra di avanzamento della lettura*/
.progress-container {
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    height: 6px;
    width: 100%;
    margin-bottom: 4px;
}
.progress-bar {
    background-color: #FF751F;
    height: 100%;
    border-radius: 10px;
}
.progress-text {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 11px;
    color: #888;
}
@media (max-width: 576px) {
    .now-reading-flex {
        flex-direction: column; /* Incolonna copertina e testo sui telefoni */
        text-align: center;
    }
    .book-cover-container {
        margin-bottom: 15px;
    }
    .progress-container {
        max-width: 200px;
        margin: 0 auto 4px auto;
    }
}