:root {
  --colorePrincipale: rgb(13, 16, 32);
  --colorePrincipaleFade: rgba(13, 16, 32, 0.3);
  --coloreSpecial: #141a30;
  --coloreFreddo: #f1f1f1;
  --coloreFreddoFade: rgba(241, 241, 241, 0.04);
  --coloreRosso: rgb(110, 52, 52);
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: 'Inter';
    background-color: var(--colorePrincipale);
    color: var(--coloreFreddo);
}
.testo-rosso{
    color: var(--coloreRosso);
}
table{
    width: 100%;
}
table td{
    padding: 10px;
}
table tr td:first-child{
    font-weight: 700;
    width: 150px;
}
table tr:nth-child(odd) td{
    background-color: var(--coloreFreddoFade);
}
table tr:first-child td:first-child{
    border-top-left-radius: 10px;
}
table tr:first-child td:last-child{
    border-top-right-radius: 10px;
}
table tr:last-child td:first-child{
    border-bottom-left-radius: 10px;
}
table tr:last-child td:last-child{
    border-bottom-right-radius: 10px;
}
/* HEADER */
.hero-btn{
    -webkit-appearance: none;
    appearance: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--coloreFreddo);
    background-color: transparent;
    text-transform: uppercase;
    border: solid thin transparent;
    border-radius: 50px;
    padding-left: 10px;
    border: solid 2px var(--coloreRosso);
    padding: 10px 20px;
    transition: all ease 0.3s;
}
.hero-btn:hover{
    background-color: var(--coloreRosso);
    color: var(--coloreFreddo);
}
.header{
    width: 100%;
    top: 0;
    background-color: transparent;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    height: 50px;
    position: fixed;
    z-index: 30;
    transition: background-color 0.25s ease;
}
.header.scrolled{
    background-color: var(--colorePrincipale);
}
.in-h{
    width: 90%;
    margin-left: 5%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.logo{
    width: 50%;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    color: var(--colorePrincipale);
    font-weight: 700;
    color: var(--coloreFreddo);
    font-size: 30px;
}
.sotto-logo{
    font-size: 12px;
    font-weight: 200;
}
.menu{
    width: 50%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: flex-end;
    height: 50px;
    gap: 10px;
    cursor: pointer;
}
.btn-menu{
    -webkit-appearance: none;
    appearance: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--coloreFreddo);
    text-transform: uppercase;
    border: solid thin transparent;
    border-radius: 50px;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    justify-content: center;
    background-color: transparent;
    transition: all ease 0.3s;
}
.btn-menu:hover{
    background-color: rgba(75, 99, 75, 0.3);
}
.btn-menu .material-icons-round{
    font-size: 20px;
}
.btn-sm{
    display: none;
}
.btn-special{
    background-color: var(--coloreSpecial);
    color: white;
}
.lang-toggle{
    min-width: 48px;
    justify-content: center;
    font-weight: 800;
}








.pagina-del-sito{
    width: 90%;
    margin-left: 5%;
    aspect-ratio: 16/9;
    position: relative;
}
.pagina-flex{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}
.titolone{
    font-size: 3rem;
    font-weight: 700;
}
.titolone-piccino{
    font-size: 2rem;
    font-weight: 700;
}
.contenitore-piccolo{
    width: 50%;
    margin-left: 25%;
}
/* TOOLBAR */
.toolbar{
    position: fixed;
    bottom: 30px;
    background-color: rgba(75, 99, 75, 0.3);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    left: 50%;
    margin-left: -100px;
    width: 200px;
    height: 30px;
    border-radius: 10px;
    gap: 15px;
    z-index: 30;
}
.btn-tool{
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.btn-tool .material-icons-round{
    color: var(--colorePrincipale);
    font-size: 20px;
}
.btn-tool.active{
    background-color: var(--colorePrincipale);
    color: white;
    border: solid thin white;
    border-radius: 10px;
}
.btn-tool.active .material-icons-round{
    color: white;
}

/* CHICCHE */
.vis-pc{
    display: block;
}
.vis-sm{
    display: none;
}
.menu-sm{
    position: fixed;
    z-index: 30;
    top: 90px;
    background-color: var(--colorePrincipale);
    border-radius: 10px;
    right: -100%;
    width: 80%;
    transition: all ease 0.3s;
    opacity: 0;
}
.close-btn{
    position: absolute;
    top: 10px;
    right: 10px;
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    color: var(--coloreFreddo);
}
.pagina-nera{
    background-color: rgba(0,0,0,0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.pagina-bianca{
    background-color: white;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 20px;
    overflow-y: scroll;
}
.super-pagina{
    width: 100%;
    margin-left: 0;
    transition: all ease 0.3s;
}
#pagina-hobbies{
    margin-left: auto;
    right: -100%;
}
#pagina-lavoro{
    margin-left: auto;
    left: -100%;
}
#pagina-ciao{
    margin-left: auto;
    left: 0;
    top: 100%;
}
#home{
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: 0 center;
    background-repeat: no-repeat;
    height: 80vh;
}
#about,
#contatti{
    aspect-ratio: auto;
    min-height: 50vh;
    padding-top: 40px;
    padding-bottom: 40px;
}
.contatti-wrap{
    width: 100%;
}
.contatti-titolo{
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.contact-card{
    width: 100%;
    min-height: 170px;
    border-radius: 14px;
    border: 1px solid rgba(241, 241, 241, 0.12);
    background-color: var(--coloreFreddoFade);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.contact-card-title{
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(241, 241, 241, 0.7);
    font-weight: 700;
}
.contact-card-value{
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    color: var(--coloreFreddo);
}
.contact-card-note{
    font-size: 0.95rem;
    color: rgba(241, 241, 241, 0.8);
}
.site-footer{
    width: 100%;
    background-color: #000;
    padding: 30px 5%;
    margin-top: 20px;
}
.footer-grid{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    align-items: center;
}
.footer-col{
    color: var(--coloreFreddo);
}
.footer-links{
    display: flex;
    gap: 10px;
    justify-content: center;
}
.footer-link{
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(241, 241, 241, 0.2);
    background: transparent;
    color: var(--coloreFreddo);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all ease 0.3s;
}
.footer-link:hover{
    background-color: var(--coloreRosso);
    border-color: var(--coloreRosso);
}
.footer-copy{
    text-align: right;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(241, 241, 241, 0.8);
}
.privacy-link{
    color: var(--coloreFreddo);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.privacy-link:hover{
    color: white;
}
.go-top-btn{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(241, 241, 241, 0.2);
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--coloreFreddo);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.go-top-btn .material-icons-round{
    font-size: 22px;
}
.go-top-btn:hover{
    background-color: var(--coloreRosso);
    border-color: var(--coloreRosso);
}
.go-top-btn.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.home-graph{
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}
.hero-box {
    width: 90%;
    text-align: center;
    color: var(--colorePrincipale);
    position: relative;
    z-index: 2;
}

.intro-line {
    font-size: 22px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.titolone {
    display: block;
    font-size: clamp(44px, 8vw, 92px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 18px;
}

.typed-line {
    min-height: 40px;
    /* font-size: clamp(20px, 3vw, 34px); */
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: white;
}

.cursor {
    display: inline-block;
    margin-left: 4px;
    animation: blink 0.8s infinite;
}
.facciotta{
    position: relative;
    left: 50%;
    margin-left: -75px;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* SFONDO CHE RUOTA */
.facciotta::before{
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 50%;

    background: conic-gradient(
        #1d4ed8 0deg 90deg,
        white 90deg 180deg,
        #c27a2c 180deg 270deg,
        white 270deg 360deg
    );

    animation: girafaccia 2s linear infinite;

    z-index: 0;
}
.facciotta img{
    position: relative;
    width: 90%;
    border-radius: 50%;
    z-index: 1;
}
@keyframes girafaccia{
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@media screen and (max-width:768px){
    .btn-menu-sm{
        font-size: 14px;
        padding: 20px;
    }
    .header{
        width: 100%;
    }
    .logo{
        width: 70%;
        padding-left: 20px;
        font-size: 20px;
    }
    .vis-pc{
        display: none;
    }
    .vis-sm{
        display: block;
    }
    .btn-menu{
        display: none;
    }
    .btn-sm{
        display: flex;
    }
    .btn-all{
        display: flex;
    }
    .contenitore-piccolo{
        width: 100%;
        margin-left: 0;
    }

    .typed-line {
        font-size: 3rem;
    }
    .contatti-titolo{
        font-size: 1.6rem;
    }
    .contact-card{
        min-height: 145px;
        padding: 18px;
    }
    .contact-card-value{
        font-size: 1.3rem;
        word-break: break-word;
    }
    .site-footer{
        padding: 24px 20px;
    }
    .footer-grid{
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links{
        justify-content: center;
    }
    .footer-copy{
        text-align: center;
    }
    .go-top-btn{
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
}