.evidenziatore {
    background: #FAB24B;
}
/* =================================================================================================
   CODAE — Design System
   style.css v2.0
   https://coolors.co/b2b2b2-cccccc-f9f9f9-745087-9b65a4-a8384d-743646-272933-4d95fa-fab24b
   =================================================================================================

   INDEX
   1.  TEMPLATE
   2.  RESET & BASE
   3.  TIPOGRAFIA
   4.  LAYOUT
   5.  HEADER & NAV
   6.  FOOTER
   7.  COMPONENTI
   8.  ANIMAZIONI
   9.  RESPONSIVE

   ============================================================================================== */

/* -- 1. TEMPLATE ------------------------------------------------------------------------------- */
:root {
    /* -- PALETTE ----------------------------------------------- */
    /* Colori base */
    --bg:               #F9F9F9;
    --bg-dark:          #272933;
    --text-primary:     #272933;
    --text-secondary:   #272933a8;                                /* 66% */
    --border:           #CCCCCC;
    --border-subtle:    #CCCCCC54;                                /* 33% */

    /* Accenti */
    --accent:           #A8384D;
    --accent-blue:      #4D95FA;
    --accent-yellow:    #FAB24B;

    /* Ombre */
    --shadow:           0 0 20px #0000001a;

    /* -- GRAFICA ----------------------------------------------- */
    /* Border radius */
    --radius-s:         3px;
    --radius-m:         5px;

    /* -- ANIMAZIONI -------------------------------------------- */
    /* Transizioni */
    --transition:       0.2s ease;
    --transition-slow:  0.5s ease;

    /* -- TESTI ------------------------------------------------- */
    /* Spaziatura */
    --space-xs:         4px;
    --space-s:          8px;
    --space-m:          16px;
    --space-l:          32px;
    --space-xl:         60px;
    --space-xxl:        120px;

    /* Tipografia */
    --font-sans:        'Google Sans Flex', sans-serif;
    --font-mono:        'Google Sans Code', monospace;

    /* Weight */
    --weight-xs:        300;
    --weight-s:         400;
    --weight-m:         500;
    --weight-l:         600;

    /* Spazziatura */
    --line-m:           1;
    --line-xl:          1.6;

    /* Dimensione */
    --size-xs:          0.75rem;
    --size-s:           0.85rem;
    --size-m:           1rem;
    --size-l:           1.5rem;
}

/* -- 2. RESET & BASE --------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:    var(--font-mono);
    font-weight:    var(--weight-s);
    line-height:    var(--line-xl);
    background:     var(--bg);
    color:          var(--text-primary);

    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

a img, button img, img {
    display: block;
}

button {
    cursor: pointer;
}

/* -- 3. TIPOGRAFIA ----------------------------------------------------------------------------- */
.hero-title {                                                       /* Titolo homepage (CODÆ) */
    font-family: var(--font-sans);
    font-size:      clamp(2.5rem, 15vw, 4rem);
    font-weight:    var(--weight-xs);
    line-height:    var(--line-m);
}
#ae {
    color:          var(--accent);
    font-weight:    var(--weight-m);
}

.section-title {                                                    /* Titolo pagine interne */
    font-size:      clamp(2.5rem, 8vw, 4rem);
    font-weight:    var(--weight-s);
    line-height:    var(--line-m);
}

h2 {                                                                /* Sottotitolo homepage */
    font-family:    var(--font-sans);
    font-weight:    var(--weight-m);
    font-size:      var(--size-l);
    margin:         var(--space-xl) 0 var(--space-l);
    max-width:      500px;
}

.section-label {                                                    /* Titolo sezione */
    font-size:      var(--size-m);
    font-weight:    var(--weight-s);
    color:          var(--accent);
    margin-bottom:  var(--space-m);
}
.section-label.line {                                                    /* Titolo sezione */
    padding:        var(--space-l) 0 var(--space-s);
    border-bottom:  2px solid var(--accent);
    margin-bottom:  0;
}

h3 {                                                                /* Titoli card / componenti */
    font-family:    var(--font-sans);
    font-weight:    var(--weight-l);
    font-size:      var(--size-l);
    margin-bottom:  var(--space-s);
}

p, ol, ul {                                                                 /* Testo body */
    font-size:      var(--size-m);
    font-weight:    var(--weight-s);
    line-height:    var(--line-xl);
    color:          var(--text-secondary);
}
ol, ul { 
    margin-left: var(--space-l);
}
.paragraph {
    font-family:    var(--font-sans);
    text-align:     justify;
    hyphens:        auto;
    margin-bottom:  var(--space-m);
}

.long {
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.c_toggle::before {
  content:        "Read more";
}
#toggle1:checked ~ .long,
#toggle2:checked ~ .long,
#toggle3:checked ~ .long,
#toggle4:checked ~ .long { max-height: 1000px; }
#toggle1:checked ~ .c_toggle::before,
#toggle2:checked ~ .c_toggle::before,
#toggle3:checked ~ .c_toggle::before,
#toggle4:checked ~ .c_toggle::before { content: "Read less"; }
.long.expanded { max-height: 1000px; }

.mono {                                                             /* Testo specifiche */
    font-size:      var(--size-s);
    color:          var(--text-secondary);
}

.nav a,
.hamburger {
    font-size:      var(--size-m);
    margin:         0 var(--space-m);
    color:          var(--border);
    display:        inline-block;
    cursor:         pointer;
}

.cursor {                                                           /* cursore lampeggiante */
    animation:      blink 1s infinite;
}
@keyframes blink {
    0%, 40%, 100%   { opacity: 1; }
    50%, 90%        { opacity: 0; }
}

.visually-hidden {                                                  /* Testo nascosto per SEO */
    position:       absolute;
    width:          1px;
    height:         1px;
    overflow:       hidden;
    clip:           rect(0,0,0,0);
    white-space:    nowrap;
}

/* -- 4. LAYOUT --------------------------------------------------------------------------------- */
.container {                                                        /* Contenitore centrato */
    width:          90%;
    max-width:      1100px;
    margin:         0 auto;
}
section {                                                           /* Sezioni tutte */
    padding:        0 0 var(--space-xl) 0;
    display:        flex;
    top:            0;
    background:     var(--bg);
}
section.home{                                                       /* Sezione sticky homepage */
    padding:        var(--space-xxl) 0;
    box-shadow:     var(--shadow);
    height:         max-content;
    min-height:     100vh;
    position:       sticky;
}
section.hero {                                                      /* Sezioni titoli */
    padding:        var(--space-xxl) 0 var(--space-xl) 0;
}
section.hero-home {                                                 /* Sezione hero homepage */
    top:            -250px;
    min-height:     100vh;
    height:         max-content;
    display:        flex;
    padding-top:    400px;
    background:     var(--bg);
}

.grid-1 {                                                           /* Griglia 2 colonne */
    display:        grid;
    grid-template-columns: 1fr;
    gap:            var(--space-xl);
    margin-bottom:  var(--space-xl);
}
.grid-2 {                                                           /* Griglia 2 colonne */
    display:        grid;
    grid-template-columns: 1fr 1fr;
    gap:            var(--space-xl);
    margin-bottom:  var(--space-xl);
}
.grid-3 {                                                           /* Griglia 3 colonne */
    display:        grid;
    grid-template-columns: repeat(3, 1fr);
    gap:            var(--space-xl);
    margin-bottom:  var(--space-xl);
}
.grid-2asim {                                                      /* Griglia 2 colonne asimm.*/
    display:        grid;
    align-items:    center;
    grid-template-columns: auto 1fr;
    column-gap:     var(--space-l);
    row-gap:        var(--space-xl);
    margin:         var(--space-l) 0;
}
/* -- 5. HEADER & NAV --------------------------------------------------------------------------- */
header {
    position:       fixed;
    left:           0;
    width:          100%;
    height:         100px;
    background:     var(--bg-dark);
    box-shadow:     var(--shadow);
    display:        flex;
    align-items:    center;
    z-index:        100;
    transition:     all var(--transition-slow);
}
header.shrink {                                                     /* Header piccolo */
    height:         60px;
}

#logo {
    width:          50px;
    transition:     all var(--transition-slow);
}
header.shrink #logo {                                               /* Logo piccolo */
    width:          40px;
}

header .container {
    display:        flex;
    justify-content:space-between;
    align-items:    center;
}

.header-right {
    display:        flex;
    align-items:    center;
    gap:            var(--space-m);
}
.icon {
    font-size:      17px;
    color:          var(--border);
    font-weight:    var(--weight-l);
}

.hamburger {
    display:        none;
}

/* -- 6. FOOTER ----------------------------------------------------------------------------------*/
footer {
    display:        flex;
    justify-content:center;
    height:         fit-content;
    position:       sticky;
    background:     var(--bg-dark);
}
footer .container {
    padding:        var(--space-s) var(--space-xl) var(--space-m) var(--space-xl);
    /* width:          fit-content; */
    text-align:     center;
}
footer .mono {
    color:          var(--border);
}
footer .link {
    color:          var(--border);
}

.logo-footer {
    height:         90px;
}

footer .line {                                                    /* Titolo sezione */
    padding:        var(--space-s) 0;
    border-bottom:  2px solid var(--border-subtle);
    margin-bottom:  0;
}

.footer-nav {
    display:        flex;
    justify-content:space-evenly;
    margin:         var(--space-l) 0;
}

/* -- 7. COMPONENTI ----------------------------------------------------------------------------- */
.btn-group {                                                        /* Gruppi bottoni */
    margin-top:     var(--space-xl);
    display:        flex;
    flex-wrap:      wrap;
    gap:            var(--space-m);
    width:          100%;
}

.btn {                                                              /* Bottoni */
    display:        inline-block;
    position:       relative;
    white-space:    nowrap;
    padding:        10px 20px 10px 7px;
    border:         1px solid var(--accent);
    border-radius:  var(--radius-m);
    font-size:      var(--size-s);
    font-weight:    var(--weight-s);
    transition:     all var(--transition);
}
.btn.primary {
    background:     var(--accent);
    color:          var(--bg);
}
.btn.secondary {
    background:     transparent;
    color:          var(--accent);
}

.copy-btn {                                                         /* Copia bibliografia */
    position:       absolute;
    top:            var(--space-s);
    right:          var(--space-s);
    background:     transparent;
    border:         1px solid var(--border);
    border-radius:  var(--radius-s);
    color:          var(--bg);
    font-family:    var(--font-mono);
    font-size:      var(--size-xs);
    padding:        2px 8px;
    transition:     all var(--transition);
}
.copy-btn:hover {
    border-color:   var(--accent-blue);
    color:          var(--accent-blue);
}
.copy-btn.copied {
    border-color:  #4CAF50;
    color:         #4CAF50;
}

input[type="text"] {                                                /* Casella di testo (ricerca) */
    font-family:    var(--font-mono);
    font-size:      var(--size-s);
    font-weight:    var(--weight-s);
    border:         1px solid var(--border);
    border-radius:  var(--radius-m);
    color:          var(--text-primary);
    padding:        10px 20px 10px 7px;
    outline:        none;
    transition:     all var(--transition);
    min-width:      300px;
    flex:           1;
}
.btn-group input[type="text"]::placeholder   { color: var(--text-secondary); }
.btn-group input[type="text"]:focus          { border-color: var(--accent);  }

.tag {                                                              /* badge e tag */
    display:        inline-block;
    font-size:      var(--size-xs);
    padding:        2px 8px;
    border:         1px solid var(--border);
    border-radius:  var(--radius-s);
    color:          var(--text-secondary);
    transition:     all var(--transition);
}
.tags {
    display:        flex;
    flex-wrap:      wrap;
    gap:            var(--space-xs);
    margin:         var(--space-s) 0 var(--space-m);
}
.tag.accent {
    border-color:   var(--accent);
    color:          var(--accent);
}

.card h3    { transition:     all var(--transition); }

.card-open {                                                        /* Gruppo cad apribile */
    display:        grid;
    grid-template-columns: 1fr auto;
    gap:            var(--space-l);
    align-items:    start;
    margin:         var(--space-m) 0;
    cursor:         pointer;
    transition:     all var(--transition-slow);
}
.item.hidden { display: none; }                                     /* Nasconde con filtro */

.team,
.item {                                                             /* Margine scroll da link */
    scroll-margin-top: var(--space-xxl);
    margin-bottom: var(--space-l);
}

.divider {                                                          /* Separatore orizzontale */
    border:         none;
    border-top:     1px solid var(--border);
    margin:         var(--space-xl) 0;
}

pre {                                                               /* codice home */
    background:     var(--bg-dark);
    border-radius:  var(--radius-m);
    color:          var(--bg);
    padding:        var(--space-l);
    font-family:    var(--font-mono);
    font-weight:    var(--weight-l);
    line-height:    var(--line-xl);
    overflow-x:     auto;
    white-space:    pre-wrap;
    word-break:     break-word;
}
.kw  { color:       var(--accent-yellow);   }
.var { color:       var(--accent-blue);     }

.bibtex {                                                           /* Stile bibliografia bibtex */
    position:       relative;
    width:          100%;
}
.bibtex pre {
    font-size:      var(--size-xs);
    font-weight:    var(--weight-s);
    padding:        var(--space-m);
    padding-right:  var(--space-xl);
    margin-bottom:  var(--space-s);
}

.photo {
    border-radius:  var(--radius-m);
    background:     var(--border);
    object-fit:     cover;
    transition:     all var(--transition-slow);
}

.item.open .photo {
    width:      240px !important;
    height:     350px !important;
}

.map {
    border:         0;
    width:          100%;
    height:         100%;
    /* min-height:     300px; */
    border-radius:  var(--radius-m);
}

#no-results {                                                       /* Nessun risultato */
    display:        none;
    padding:        var(--space-l) 0;
}

/* -- 8. ANIMAZIONI ----------------------------------------------------------------------------- */
/* Arrow prefix */
.shift              { transition:   all var(--transition);}
.shift .arrow       { text-indent:  -10px;              }           /* Rientro testo */
.shift:hover        { transform:    translateX(6px)     }           /* Spostamento */
.shift:hover .arrow { color:        var(--accent-blue)  }           /* Colore */
.arrow::before {                                                    /* Simbolo > nascosto */
    content:        ">\00a0";
    display:        inline-block;
    transform:      translateX(-6px);
    opacity:        0;
    transition:     all var(--transition);
}
.shift:hover .arrow::before,
.arrow:hover::before {                                              /* Simbolo > visibile */
    transform:      translateX(0);
    opacity:        1;
}

.arrow.vertical {                                                   /* Freccia verticale */
    font-family:    var(--font-mono);
    transition:     all var(--transition-slow);
    transform:      rotate(90deg);
}
.item.open .arrow.vertical {
    transform:      rotate(-90deg) translateY(-3px) translateX(10px);
}

.btn:hover,
.icon:hover,
#logo:hover {                                                       /* Click bottone */
    transform:      translateY(-3px);
}
.btn:active,
.icon:active,
#logo:active {                                                      /* Click bottone */
    transform:      translateY(3px);
}

/* .shiftover:hover .tag {*/                                        /* Tag colorati */
/*    border-color:   var(--accent-blue);
    color:          var(--accent-blue);
} */

/* Sottolineatura link */
.link {                                                             /* Testo link */
    display:        flex;
    align-items:    center;
    gap:            var(--space-s);
    margin:         var(--space-xs) 0;
    color:          var(--text-secondary);
}
.link.horizontal {
    gap:            var(--space-l);
}
.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.link i {                                                           /* Icona link */
    width:          var(--size-m);
    text-align:     center;
    flex-shrink:    0;
    margin-bottom:  2px;
}
.underline {                                                        /* Testo collegamento link */
    position:       relative;
    transition:     all var(--transition);
    margin:         0;
}
.underline:hover {                                                  /* Colore azzurro */
    color:          var(--accent-blue);
    transform:      translateX(6px);
}
.underline::after {                                                 /* Sottolineatura */
    content:        "";
    position:       absolute;
    left:           0;
    top:            100%;
    width:          0;
    height:         1px;
    background:     var(--accent-blue);
    transition:     all var(--transition);
}
.underline:hover::after {
    width:          100%;
}

.color {
    transition:     all var(--transition);
}

.color:hover {
    color:          var(--accent-blue);
}

.expand {                                                           /* Animazione espansione */
    display:        grid;
    grid-template-rows: 0fr;
    transition:     all var(--transition-slow);
}
.item.open .expand  { grid-template-rows: 1fr; }
.expand-inner {                                                     /* Contenuto nascosto */
    overflow:       hidden;
}
.spaced {
    padding:        0 var(--space-xl);
}

.expand-preview {
    transition:     all var(--transition-slow);
    margin-bottom:  0;
}

.item.open .expand-preview {
    display: none;
}

/* -- 9. RESPONSIVE ----------------------------------------------------------------------------- */
@media(max-width: 900px) {                                          /* stile mobile (<900 pixel) */
    /* -- Griglie -- */
    .grid-2,
    .grid-3,
    .grid-2asim { grid-template-columns: 1fr; }                     /* Conv. griglie in colonne */
    .grid-2asim.shift,                                              /* Eccezione per tool */
    .grid-2asim.team { grid-template-columns: auto 1fr; }           /* Eccezione per team */
    footer .grid-3 { grid-template-columns: repeat(3, 1fr); }       /* Eccezione per link footer */
    footer .grid-3 { gap: var(--space-s); }                         /* Riduce gap footer */

    .grid-2asim { row-gap: var(--space-s) }                         /* Gap tra righe */
    .grid-2asim img { margin: 0 auto; }                             /* Immagini team al centro */

    /* Arrow link */
    .shift .arrow { margin-left:  0px }
    .arrow::before { content: none; }                               /* Simbolo > nascosto */

    /* Altro */
    .link-label { display: none; }                                  /* Toglie nome link */
    .link.horizontal { gap: var(--space-m)}                         /* Aggiunge spazio tra link */

    iframe { min-height: 250px; }                                   /* Dim minima mappa */

    footer .container { padding: var(--space-s); }                  /* Riduce padding footer */
    .spaced {padding: 0 var(--space-s);}                            /* Riuduce padding abstract */

    input[type="text"] { min-width: 100%}                           /* Casella di ricerca al 100% */

    /* -- Menù hamburger -- */
    .nav,
    .header-right {                                                 
        transition:     all var(--transition);
        transform:      translateX(100%);
    }
    .nav {
        position:       fixed;
        top:            0;
        right:          0;
        min-height:     100vh;
        height:         max-content;
        width:          170px;
        padding:        20px;
        text-align:     center;
        background:     var(--bg-dark);
    }
    .nav a {
        margin:         var(--space-m);
    }
    .header-right {
        position:       fixed;
        justify-content:center;
        top:            90svh;
        right:          0;
        width:          170px;
        gap:            30px;
        padding:        20px;
    }
    .nav.active,
    .header-right.active {
        transform:      translateX(0);
    }
    .hamburger{
        display:        block;
    }
}

@media(max-width: 600px) {
    .footer-nav { flex-direction: column; }                         /* Link footer in colonna */
    .grid-3.line,                                                   /* Link footer in colonna */
    .grid-2asim.team { grid-template-columns: 1fr; }                /* Team in colonna */
    .photo {min-width: 60%;}
}

@media(max-width: 300px) {                                          /* Soppressione mappa */
    iframe { display: none; }
}