/* -------------------------------------------------------------------------------- */
/* ! impostazioni di base per tutto il prodotto */
/* -------------------------------------------------------------------------------- */
/* Variabili personali per lo stile */
:root {
    /* colori */
    --color-primary: #ba1745;
    --color-secondary: #fbf4e4;
    --color-dark: #1a1a1a;
    --color-light: #ffffff;

    /* Typography */
    --font-primary: 'REM', sans-serif;
    --font-secondary: 'Allura', cursive, light;
    --font-display: 'Quicksand', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Other UI Properties */
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@font-face {
    font-family: 'Voyage';
    src: url(../risorse/Voyage-Regular.woff2) format('woff2'),
        url(../risorse/Voyage-Regular.woff) format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    src: url(../risorse/Voyage-Bold.woff2) format('woff2'),
        url(../risorse/Voyage-Bold.woff) format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Migliora le performance di caricamento */
}

/* -------------------------------------------------------------------------------- */
/* ! Reset */
/* -------------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* HEADER */
/* Container centrato con max-width */
.container-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.main-header {
    background-color: var(--color-secondary);
    width: 100%;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__logo img {
    display: block;
    height: 70px;
    color: var(--color-primary);

}

.navbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: -9px;
    display: flex;
    gap: 3rem;
}

.navbar a {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--color-primary);
}

.cv-btn {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    transition: background 0.3s ease;
    font-family: var(--font-display);
    margin-left: auto;
}

.cv-btn:hover {
    background-color: #8e0e33;
}

.linea {
    margin-top: 20px;
    border: 1px solid var(--color-primary);
}

/* -------------------------------------------------------------------------------- */
/* ! Base e tipografia */
/* -------------------------------------------------------------------------------- */
body {
    margin: 0;
    font-family: var(--font-secondary);
    background-color: var(--color-secondary);
    place-items: center;
    overflow-x: hidden;
}

.title {
    grid-column: 3;
    /* posizione centrale */
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
}

.section__one {
    width: 100%;
    max-width: 1200px;
    /* padding: 2rem; */
    align-items: center;
    justify-items: center;
}

.hero {
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    width: 100%;
}

.content {
    max-width: 80%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.small-text {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.8;
    display: block;
    margin-bottom: 0.5rem;
    transform: translateX(-20px);
    animation: slideInLeft 0.8s ease-out 0.8s forwards;
}

.name {
    font-family: Voyage;
    text-transform: lowercase;
    font-size: clamp(3rem, 14vw, 9.5rem);
    color: var(--color-primary);
    line-height: 0.9;
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 1s ease-out 1s forwards;
}

.description-text {
    font-family: var(--font-display);
    font-size: 2.9rem;
    font-weight: 50;
    color: var(--color-dark);
    opacity: 0.8;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    transform: translateX(-20px);
    animation: slideInLeft 0.8s ease-out 0.8s forwards;
}

.tagline {
    font-family: var(--font-display);
    text-align: right;
    font-size: 1.5rem;
    color: var(--color-dark);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.8s ease-out 1.3s forwards;
}

.highlight-wrapper {
    display: inline-block;
    position: relative;
    padding: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 300;
    animation: appearOval 0.8s ease-out 2s forwards;
}

.highlight-text {
    position: relative;
    z-index: 2;
    color: var(--color-dark);
}

.highlight-link:hover .highlight-text {
    color: var(--color-primary);
}

.highlight-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-48%, -50%) scale(1.2);
    width: 220px;
    height: auto;
    z-index: 1;
    opacity: 0.7;
}

/* Freccia verso il basso */
.scroll-down-indicator {
    /* margin-top: 2rem; */
    display: flex;
    justify-content: center;
    align-items: center;

}

.curved-arrow {
    animation: bounceDown 2s infinite ease-in-out;
    height: 140px;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* animazioni sfondo copertina */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.circle {
    position: absolute;
    border: 2px solid rgba(186, 23, 69, 0.3);
    border-radius: 50%;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 15%;
    right: 10%;
    animation: rotate 20s linear infinite;
}

.circle-2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation: rotate 15s linear infinite reverse;
}

.line {
    position: absolute;
    background: rgba(186, 23, 69, 0.3);
    height: 2px;
}

.line-1 {
    width: 150px;
    top: 47%;
    left: 5%;
    transform: rotate(45deg);
    animation: pulse 2s ease-in-out infinite;
}

.line-2 {
    width: 180px;
    bottom: 38%;
    right: 3%;
    transform: rotate(-45deg);
    animation: pulse 2s ease-in-out infinite 1s;
}

.sidebar {
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-content {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--color-light);
    text-align: center;
}

.year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.role {
    font-family: var(--font-primary);
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.3s forwards;
}

/* Animazioni cerchi e righe*/
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* carosello copertina */
.carousel-container {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 33.333%;
    /* Default per desktop - 3 elementi */
    padding: 0.5rem;
    box-sizing: border-box;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    transform: scale(0.95);
}

.carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.carousel-controls button {
    background: var(--color-primary);
    border: none;
    width: 40px;
    height: 40px;
    color: var(--color-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-controls button:hover:not(:disabled) {
    background: #8e0e33;
    transform: scale(1.1);
}

.carousel-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* box con citazioni */
.quote-box {
    /* background-color: var(--color-primary); */
    color: var(--color-dark);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
    margin: 1rem auto;
    /* box-shadow: var(--box-shadow); */
}

.quote-text {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 3rem;
    line-height: 1.5;
}

/* sezione scopri di più */
.discover-section {
    text-align: center;
    max-width: 1200px;
    margin-bottom: 170px;
}

.discover-btn {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    margin-bottom: 50px;
}

.discover-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

.discover-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 1rem;
}

.discover-content.open {
    max-height: 300px;
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* Cursore personalizzato */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(179, 57, 91, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 10px rgba(179, 57, 91, 0.3);
}

.cursor-outer {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(179, 57, 91, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
}

/* Effetti hover */
.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(179, 57, 91, 1);
    box-shadow: 0 4px 20px rgba(179, 57, 91, 0.5);
}

.cursor-outer.hover {
    transform: translate(-50%, -50%) scale(1.8);
    border-color: rgba(179, 57, 91, 0.6);
}

/* Effetto click */
.cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(179, 57, 91, 1);
}

.cursor-outer.click {
    transform: translate(-50%, -50%) scale(0.6);
    border-color: rgba(179, 57, 91, 0.8);
}

/* -------------------------------------------------------------------------------- */
/* ! FOOTER */
/* -------------------------------------------------------------------------------- */
footer {
    background: var(--color-primary);
    width: 100%;
    padding: 20px 0;
    margin-top: 100px;
    box-sizing: border-box;

}

.footer-home {
    position: fixed;
    bottom: 0;
}


footer .container {
    background: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

footer>.container>div {
    text-align: center;
}

.footer-nome {
    list-style: none;
    font-family: Voyage;
    font-size: 1.5rem;
    color: var(--color-secondary);
    text-align: center;
}

div .social {
    font-size: 1em;
    display: flex;
    gap: 20px;
}

.social i {
    color: var(--color-secondary);
}

.copyright a {
    color: var(--color-secondary);
    font-family: var(--font-display);
    font-size: 1rem;
}

.copyright i {
    color: var(--color-secondary);
    margin-right: 6px;
}

.privacy {
    display: flex;
    flex-direction: column-reverse;

}


@viewport {
    width: device-width;
    zoom: 1.0;
}

/* -------------------------------------------------------------------------------- */
/* ! parte progetti grafica e prodotto*/
/* -------------------------------------------------------------------------------- */
.title-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 100px;
}

.title {
    font-family: Voyage;
    font-weight: 100;
    font-size: 9rem;
    color: var(--color-primary);
    border-bottom: 2px solid rgba(186, 23, 69, 0.3);
}

.subtitle {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 10;
    color: var(--color-dark);
}

.header-grafica {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 10px;
    text-align: right;
    line-height: 0.9;
    width: 80%;
    max-width: 1200px;
}

.title-grafica {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 10;
    color: var(--color-dark);
}

.subtitle-grafica {
    font-family: Voyage;
    font-size: 10rem;
    font-weight: 8;
    color: var(--color-primary);

}

.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin-top: 100px;
}


.container-grafica>div {
    background: linear-gradient(135deg, #c41e3a, #a91b2e);
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 50px; */
    font-size: 1.8rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
}

/* Stili per i box con immagini */
.container-grafica .box {
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    /* da far vedere a fede queste 2 righe  */
    height: 300px;
    kerning: 200px;
}

.container-grafica .box:hover {
    transform: scale(1.05);
    /* ingrandisce del 5%  */
}

.container-grafica .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* mantiene proporzioni senza deformare  */
    display: block;
    transition: transform 0.3s ease;
}

/* Opzionale: effetto zoom anche sull'immagine */
.container-grafica .box:hover img {
    transform: scale(1.1);
}

.div1 {
    grid-column: span 2 / span 2;
    object-position: 23% !important;
}

.div1 a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    /* Rimuove spazi verticali */
}

.div1 a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Rimuove spazi sotto l'immagine */
}

.div2 {
    grid-column-start: 3;
}

.div2 a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    /* Rimuove spazi verticali */
}

.div2 a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Rimuove spazi sotto l'immagine */
}

.div3 {
    grid-row-start: 2;
}

.div3 a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    /* Rimuove spazi verticali */
}

.div3 a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Rimuove spazi sotto l'immagine */
}

.div4 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-row-start: 2;
    height: 615px !important;
}

.div4 a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    /* Rimuove spazi verticali */
}

.div4 a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Rimuove spazi sotto l'immagine */
}

.div5 {
    grid-row-start: 3;
}

.div5 a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    /* Rimuove spazi verticali */
}

.div5 a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Rimuove spazi sotto l'immagine */
}

.div6 {
    grid-row-start: 4;
}

.div7 {
    grid-row-start: 4;
}

.div8 {
    grid-row-start: 4;
}

.div9 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    height: 600px !important;
}

.div10 {
    grid-row: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 5;
    height: 600px !important;
}

.div10 img {
    object-position: 23%;
}

.div11 {
    grid-column: span 3 / span 3;
    grid-row-start: 7;
}

.div11 a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    /* Rimuove spazi verticali */
}

.div11 a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Rimuove spazi sotto l'immagine */
}

.header-prodotto {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 10px;
    text-align: right;
    line-height: 0.9;
    width: 80%;
    margin-top: 180px;
    max-width: 1200px;
}

.title-prodotto {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 10;
    color: var(--color-dark);
}

.subtitle-prodotto {
    font-family: Voyage;
    font-size: 10rem;
    font-weight: 8;
    color: var(--color-primary);

}

.grid-portfolio-prodotto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: repeat(6, 1fr); */
    gap: 15px;
    max-width: 1200px;
    margin-top: 100px;
}

/* -------------------------------------------------------------------------------- */
/* ! About me */
/* -------------------------------------------------------------------------------- */

.about-main {
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 100px;
    margin-top: 50px;
    max-width: 1200px;
}

.elena-img {
    width: 50%;
    border-radius: 20px;
    object-fit: cover;
}

.elena-img img {
    width: 100%;
    border-radius: 20px;
}

.about-testi {
    width: 77%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 100px;
}

h3 {
    font-family: Voyage;
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-primary);
}

h1 {
    font-family: Voyage;
    font-size: 6rem;
    font-weight: 400;
    color: var(--color-primary);
}

.h-testi {
    line-height: 60px;
}

.p-about {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1;
    margin-left: 300px;
    margin-top: 50px;
}

.important {
    font-size: 1em;
    font-weight: 500;
    color: var(--color-primary);
}

.content-about {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin-top: 50px;
}

.content-title {
    width: 35%;
    text-align: left;
    font-size: 40px;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--color-primary);
}

.content-testi {
    width: 70%;
    text-align: left;
    font-size: 40px;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--color-dark);
}

.box-dim {
    width: 100%;
    gap: 30px;
}

.leading {
    font-size: 1.4em;
}

/* Parallax base */
.parallax {
    background-image: url('https://images.unsplash.com/photo-1508780709619-79562169bc64?auto=format&fit=crop&w=1950&q=80');
    width: 100%;
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Overlay per migliorare il contrasto */
.overlay {
    /* background-color: rgba(0, 0, 0, 0.4); */
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}



/* -------------------------------------------------------------------------------- */
/* ! Progetto dentro */
/* -------------------------------------------------------------------------------- */
.hero__progetti {
    object-fit: cover;
    width: 100%;
}

.hero__progetti img {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    object-position: center bottom;
}

.box__progetto__main {
    width: 85%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.box__progetto__testi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
}

.titlolo__progetto {
    font-family: Voyage;
    font-size: 3em;
    margin-bottom: 15px;
}

.sottotitolo__progetto {
    font-family: var(--font-display);
    font-size: 2em;
}

.praragrafo__progetto {
    font-family: var(--font-display);
    font-size: 1em;
    line-height: 1.2;
    margin-top: 15px;
}

.box__progetto__img {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.img__progetto__up {
    width: 50%;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.img_quadrato_progetto {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.img__progetto__down {
    width: 50%;
    margin-top: 15px;
}

.img_long_progetto {
    width: 615px;
    height: 300px;
    object-fit: cover;
}

/* -------------------------------------------------------------------------------- */
/* ! media query */
/* -------------------------------------------------------------------------------- */
/* Telefoni piccoli */
@media only screen and (max-width: 600px) {

    /*menu hamburger*/
    .header__menu {
        position: fixed;
        left: 50%;
        width: 50%;
        height: 40%;
        background: var(--secondary);
        /* questo comando serve per far traslare via uno sfondo  */
        transform: translateY(-100%);
        transition: 0.3s ease-in-out;

    }

    .open .header__menu {
        transform: translateY(0);
        /* top: 20%; */
        position: absolute;
        top: 0;
        left: 0;
        background-color: var(--color-secondary);
        font-family: var(--font-display);
        width: 100%;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar {
        position: absolute;
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        align-items: center;
        gap: var(--space-m);
        font-size: 1em;
        padding: var(--spacce-s);
        position: static;
        z-index: 2;
    }

    .navbar a {
        text-decoration: none;
        font-family: var(--font-display);
        font-size: 1.8rem;
        font-weight: 400;
        color: var(--color-primary);
        transition: color 0.3s ease;
    }

    /* Hamburger */
    .icon__hamburger {
        cursor: pointer;
        height: 20px;
        width: 40px;
        margin-top: -11px;
        position: absolute;
        transition: 0.3s ease-in-out;
    }

    .icon__hamburger span {
        background: var(--color-primary);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: 20px;

    }

    /* qui con icon hambuer sto creando un hambuerger animato colleto a span dell'html */
    .icon__hamburger span:nth-child(1) {
        top: 0;
    }

    .icon__hamburger span:nth-child(2),
    .icon__hamburger span:nth-child(3) {
        top: 10px;
        width: 70%;
    }

    .icon__hamburger span:nth-child(4) {
        top: 20px;
    }

    /* Hamburger solo quando la classe antenato è in open */
    .open .icon__hamburger {
        /* i deg sono i gradi per la rotazione che fa la x dell'hamburger */
        transform: rotate(180deg);
    }

    .open .icon__hamburger span:nth-child(1),
    .open .icon__hamburger span:nth-child(4) {
        width: 0;
    }

    .open .icon__hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon__hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    .cv-btn {
        margin-left: 0;
    }

    .quote-text {
        font-size: 2rem;
    }

    .section__one {
        margin-left: auto;
    }

    .discover-section {
        margin-left: auto;
    }

    .small-text {
        font-size: 1.5rem;
    }

    .name {
        font-size: 3rem;
    }

    .description-text {
        font-size: 1.9rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .highlight-text {
        font-size: 1.1rem;
    }

    .highlight-circle {
        width: 160px;
    }

    .line-1 {
        width: 30px;
        top: 28%;
        left: -1%;
    }

    .line-2 {
        width: 145px;
        top: 52%;
        left: 45%;
    }

    .carousel-item {
        flex: 0 0 100%;
        /* 1 elemento per mobile */
    }

    .carousel-item img {
        height: 250px;
    }

    .carousel-container {
        padding: 0 10px;
    }


    /* -------------------------------------------------------------------------------- */
    /* ! about */
    /* -------------------------------------------------------------------------------- */
    /* hero */
    .about-main {
        width: 90%;
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-evenly;
        gap: 0px;
        margin-top: 0;
    }

    .elena-img {
        width: 100%;
    }

    .about-testi {
        align-items: center;
        width: 100%;
    }

    .about_testi_up {
        text-align: center;
    }

    .p-about {
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 400;
        color: var(--color-dark);
        line-height: 1;
        margin-left: 0px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    /* contenuti */
    .content-about {
        display: flex;
        width: 90% !important;
        flex-direction: column;
        max-width: 1200px;
        margin-top: 50px;
        align-items: center;
    }

    .content-title {
        width: 100%;
    }

    .content-testi {
        width: 100%;
    }

    /* -------------------------------------------------------------------------------- */
    /* ! progetti generale */
    /* -------------------------------------------------------------------------------- */
    .title {
        font-size: 4rem;
    }

    .subtitle {
        font-size: 2rem;
    }

    .title-grafica,
    .title-prodotto {
        font-size: 3rem;
    }

    .subtitle-grafica,
    .subtitle-prodotto {
        font-size: 5rem;
    }

    .grid-portfolio,
    .grid-portfolio-prodotto {
        width: 90%;
        grid-template-columns: 1fr;
        /* UNA SOLA COLONNA */
        grid-template-rows: auto;
        /* Righe automatiche */
    }

    .grid-portfolio .div1,
    .grid-portfolio .div2,
    .grid-portfolio .div3,
    .grid-portfolio .div4,
    .grid-portfolio .div5,
    .grid-portfolio .div6,
    .grid-portfolio .div7,
    .grid-portfolio .div8,
    .grid-portfolio .div9,
    .grid-portfolio .div10,
    .grid-portfolio .div11 {
        grid-column: 1;
        grid-row: auto;
    }

    .grid-portfolio-prodotto .div3,
    .grid-portfolio-prodotto .div4,
    .grid-portfolio-prodotto .div5 {
        grid-column: 1;
        grid-row: auto;
    }

    /* -------------------------------------------------------------------------------- */
    /* ! progetto aperto */
    /* -------------------------------------------------------------------------------- */
    .hero__progetti img {
        height: 50vh;
    }

    .box__progetto__main {
        flex-direction: column;
    }

    .titlolo__progetto {
        font-size: 2.5em;
    }

    .sottotitolo__progetto {
        font-size: 1.5em;
    }

    .box__progetto__img {
        width: 100%;
    }

    .img_quadrato_progetto {
        width: 150px;
        height: 150px;
    }

    .img_long_progetto {
        width: 315px;
        height: 150px;
    }


    footer .container {
        flex-direction: column;
        gap: 40px;

    }

}



/* Telefoni grandi e tablet piccoli */
@media only screen and (min-width: 601px) and (max-width: 768px) {

    .main-header {
        margin-left: auto;
        margin-right: auto;
    }

    /*menu hamburger*/
    .header__menu {
        position: fixed;
        left: 50%;
        width: 50%;
        height: 40%;
        background: var(--secondary);
        /* questo comando serve per far traslare via uno sfondo  */
        transform: translateY(-100%);
        transition: 0.3s ease-in-out;

    }

    .open .header__menu {
        transform: translateY(0);
        /* top: 20%; */
        position: absolute;
        top: 0;
        left: 0;
        background-color: var(--color-secondary);
        font-family: var(--font-display);
        width: 100%;
        height: 100vh;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar {
        position: absolute;
    }

    .site-nav {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
        align-items: center;
        gap: var(--space-m);
        font-size: 1em;
        padding: var(--spacce-s);
        position: static;
        z-index: 2;
    }

    .navbar a {
        text-decoration: none;
        font-family: var(--font-display);
        font-size: 1.8rem;
        font-weight: 400;
        color: var(--color-primary);
        transition: color 0.3s ease;
    }

    /* Hamburger */
    .icon__hamburger {
        cursor: pointer;
        height: 20px;
        width: 40px;
        position: relative;
        transition: 0.3s ease-in-out;
    }

    .icon__hamburger span {
        background: var(--color-primary);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: 20px;

    }

    /* qui con icon hambuer sto creando un hambuerger animato colleto a span dell'html */
    .icon__hamburger span:nth-child(1) {
        top: 0;
    }

    .icon__hamburger span:nth-child(2),
    .icon__hamburger span:nth-child(3) {
        top: 10px;
        width: 70%;
    }

    .icon__hamburger span:nth-child(4) {
        top: 20px;
    }

    /* Hamburger solo quando la classe antenato è in open */
    .open .icon__hamburger {
        /* i deg sono i gradi per la rotazione che fa la x dell'hamburger */
        transform: rotate(180deg);
    }

    .open .icon__hamburger span:nth-child(1),
    .open .icon__hamburger span:nth-child(4) {
        width: 0;
    }

    .open .icon__hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon__hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    .cv-btn {
        margin-left: 0;
    }

    .quote-text {
        font-size: 2rem;
    }

    .section__one {
        margin-left: auto;
    }

    .discover-section {
        margin-left: auto;
    }

    .small-text {
        font-size: 1.5rem;
    }

    .name {
        font-size: 3rem;
    }

    .description-text {
        font-size: 1.9rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .highlight-text {
        font-size: 1.1rem;
    }

    .highlight-circle {
        width: 160px;
    }

    .line-1 {
        width: 50px;
        top: 30%;
        left: 3%;
    }

    .line-2 {
        width: 150px;
        top: 48%;
        left: 65%;
    }

    .carousel-item {
        flex: 0 0 50%;
        /* 2 elementi per tablet */
    }

    .carousel-item img {
        height: 275px;
    }


    /* -------------------------------------------------------------------------------- */
    /* ! about */
    /* -------------------------------------------------------------------------------- */
    /* hero */
    .about-main {
        width: 90%;
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-evenly;
        gap: 0px;
        margin-top: 0;
    }

    .elena-img {
        width: 100%;
    }

    .about-testi {
        align-items: center;
        width: 100%;
    }

    .about_testi_up {
        text-align: center;
    }

    .p-about {
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 400;
        color: var(--color-dark);
        line-height: 1;
        margin-left: 0px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    /* contenuti */
    .content-about {
        display: flex;
        width: 90% !important;
        flex-direction: column;
        max-width: 1200px;
        margin-top: 50px;
        align-items: center;
    }

    .content-title {
        width: 100%;
    }

    .content-testi {
        width: 100%;
    }

    /* -------------------------------------------------------------------------------- */
    /* ! progetti generale */
    /* -------------------------------------------------------------------------------- */
    .title {
        font-size: 6rem;
    }

    .subtitle {
        font-size: 3rem;
    }

    .title-grafica,
    .title-prodotto {
        font-size: 3rem;
    }

    .subtitle-grafica,
    .subtitle-prodotto {
        font-size: 5rem;
    }

    .grid-portfolio,
    .grid-portfolio-prodotto {
        width: 90%;
    }


    .div6 img {
        object-position: -95px 10%;
    }

    .div7 img {
        object-position: -155px 30%;
    }

    .div10 img {
        object-position: -209px 30%;
    }


    /* -------------------------------------------------------------------------------- */
    /* ! progetto aperto */
    /* -------------------------------------------------------------------------------- */
    .hero__progetti img {
        height: 50vh;
    }

    .box__progetto__main {
        flex-direction: column;
    }

    .titlolo__progetto {
        font-size: 2.5em;
    }

    .sottotitolo__progetto {
        font-size: 1.5em;
    }

    .box__progetto__img {
        width: 100%;
    }

    .img_quadrato_progetto {
        width: 150px;
        height: 150px;
    }

    .img_long_progetto {
        width: 315px;
        height: 150px;
    }


    footer .container {
        flex-direction: column;
        gap: 40px;


    }

}

/* tablet e Ipad */
@media only screen and (min-width: 769px) and (max-width: 1200px) {
    .quote-text {
        font-size: 2rem;
    }

    .section__one {
        margin-left: auto;
    }

    .discover-section {
        margin-left: auto;
    }

    .small-text {
        font-size: 2.5rem;
    }

    .name {
        font-size: 6rem;
    }

    .description-text {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .highlight-text {
        font-size: 1.5rem;
    }

    .highlight-circle {
        width: 240px;
    }

    .line-1 {
        width: 100px;
        top: 40%;
        left: 3%;
    }

    .line-2 {
        width: 185px;
        top: 56%;
        left: 65%;
    }

    .carousel-item {
        flex: 0 0 33.333%;
        /* 3 elementi per desktop */
    }



    /* -------------------------------------------------------------------------------- */
    /* ! about */
    /* -------------------------------------------------------------------------------- */
    /* hero */
    .about-main {
        width: 90%;
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-evenly;
        gap: 0px;
        margin-top: 0;
    }

    .elena-img {
        width: 100%;
    }

    .about-testi {
        align-items: center;
        width: 100%;
    }

    .about_testi_up {
        text-align: center;
    }

    .h-testi h3 {
        font-size: 3rem;
    }

    .h-testi h1 {
        font-size: 5rem;
    }


    .p-about {
        font-family: var(--font-display);
        font-size: 2.2rem;
        font-weight: 400;
        color: var(--color-dark);
        line-height: 1;
        margin-left: 0px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    /* contenuti */
    .content-about {
        display: flex;
        width: 90% !important;
        flex-direction: column;
        max-width: 1200px;
        margin-top: 50px;
        align-items: center;
    }

    .content-title {
        width: 100%;
    }

    .content-testi {
        width: 100%;
    }


    /* -------------------------------------------------------------------------------- */
    /* ! progetto aperto */
    /* -------------------------------------------------------------------------------- */
    .hero__progetti img {
        height: 50vh;
    }

    .box__progetto__main {
        flex-direction: column;
    }

    .titlolo__progetto {
        font-size: 2.5em;
    }

    .sottotitolo__progetto {
        font-size: 1.5em;
    }

    .box__progetto__img {
        width: 100%;
    }

    .img_quadrato_progetto {
        width: 150px;
        height: 150px;
    }

    .img_long_progetto {
        width: 315px;
        height: 150px;
    }


    footer .container {
        flex-direction: column;
        gap: 40px;

    }

    footer .container {
        padding: 0 40px;
    }

}



/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Medium devices (landscape tablets, 768px and down) */
@media only screen and (max-width: 768px) {
    .footer-home {
        position: relative;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .footer-home {
        bottom: 0;
    }
}

/* Large devices (laptops/desktops, 992px and down) */
@media only screen and (max-width: 992px) {
    .footer-home {
        bottom: 0;
    }

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1280px) {
    .footer-home {
        position: relative;
        bottom: 0 !important;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (max-width: 1024px) {
    .footer-home {
        bottom: 0 !important;
    }
}


@media (width: 1024px) {

    body {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh !important;
    }

    .section__one {
        flex: none !important;
        height: 600px !important;
        /* Altezza fissa invece di espandersi */
        overflow: visible !important;
    }

    #foot.footer-home {
        position: static !important;
        margin-top: auto !important;
    }

    .discover-section {
        position: relative !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: -100px !important;
        flex: 1 !important;
        padding-top: 20px !important;
    }
}