/* Reset di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo e font generico */
body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: red;
    margin-top: -3px;
}

html {
    scroll-behavior: smooth;
}

.back-to-top {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

header .left h1 {
    color: red;
    font-size: 22px;
    font-weight: normal;
    position: fixed;
    left: 10px;
}

header .right a {
    color: red;
    text-decoration: underline;
    font-size: 22px;
    font-weight: normal;
    position: fixed;
    top: 6px;
    right: 10px;
}

/* MENU FISSO HOME */
.fixed-text-bar {
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 50px;
    font-size: 15px;
    white-space: nowrap;
}

.fixed-text-bar a {
    color: red;
    text-decoration: underline;
    margin-right: 30px;
}

.fixed-text-bar a:last-child {
    margin-right: 500px;
}

.responsive-title {
    display: none;
}

/* CONTENITORI SEZIONI HOME */
.content-container,
.content-container1 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.left-column {
    flex-basis: 40%;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.right-column {
    flex-basis: 60%;
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

h2 {
    color: red;
    font-size: 22px;
    font-weight: normal;
}

.description1 {
    margin-top: 10px;
}

.text-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.left-second-column {
    flex: 1;
    text-align: left;
    color: red;
    font-size: 22px;
}

.right {
    text-align: right;
    color: red;
    font-size: 22px;
}

/* IMMAGINI E VIDEO */
.aligned-image,
.custom-video {
    width: 100%;
    height: auto;
}

.custom-video {
    max-width: 100%;
    height: auto;
}

/* LINK PERSONALIZZATI */
.custom-link {
    color: red;
    text-decoration: underline;
}

.custom-link:hover {
    color: red;
    text-decoration: underline;
}

/* ----------------------------- */
/*           ABOUT PAGE          */
/* ----------------------------- */

/* Testo centrale (Graphic designer + mail) */
.text-container {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between; /* sinistra e destra */
    align-items: center;
    padding-left: 10px;  /* stesso margine del titolo */
    padding-right: 10px; /* stesso margine del link Works */
    box-sizing: border-box;
}

.text-strip {
    font-size: 15px;
    color: red;
    text-align: left;
    margin-left: 0;
}

.text-mail {
    font-size: 15px;
    color: red;
    text-align: right;
    margin-right: 0;
}

/* Frase lunga in basso */
.bottom-text {
    position: fixed;
    bottom: 10px;
    left: 10px; /* allineata come il titolo */
    text-align: left;
    font-size: 15px;
    color: red;
    max-width: 90%;
    line-height: 1.4;
}

/* ----------------------------- */
/*          RESPONSIVE           */
/* ----------------------------- */
@media (max-width: 768px) {
    .responsive-title {
        display: block;
    }

    .left-column {
        display: none;
    }

    .right-column {
        flex-basis: 100%;
        margin-right: 0;
    }

    .fixed-text-bar {
        position: fixed;
        z-index: 1000;
        top: 40px;
        left: 0;
        transform: translateY(0%);
        display: flex;
        flex-direction: column;
        align-items: left;
        padding-left: 10px;
        font-size: 15px;
    }

    .content-container1 {
        margin-top: 200px;
    }

    .responsive-title,
    .text-row {
        margin: 0 10px;
    }

    /* ABOUT responsive */
    .text-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 0 10px;
        top: 45%;
        transform: translateY(-45%);
    }

    .text-strip,
    .text-mail {
        text-align: left;
        margin: 0;
        font-size: 14px;
    }

    .bottom-text {
        bottom: 10px;
        left: 10px;
        text-align: left;
        font-size: 14px;
    }
}
