:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #ffffff;
    --input-bg: #1a1a1a;
    --divider-color: #333333;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.2;
    overflow-x: hidden;
}

.container {
    max-width: 1470px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navbar */
nav {
    position: sticky;
    top: 0;
    background: var(--bg-color);
    padding: 24px 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    background: linear-gradient(to right, #ff0096, #f53e44);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Side Panel Navigation */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default using percentage */
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: #000;
    z-index: 2000;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* cambiato da space-between per favorire lo scroll */
    gap: 40px;
    /* distanziamento tra header, links e footer */
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    /* Abilita lo scroll verticale */
}

.side-panel.active {
    right: 0;
}


.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.side-panel-logo {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(to right, #ff0096, #f53e44);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.close-btn {
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.side-nav-links {
    list-style: none;
}

.side-nav-links li {
    margin-bottom: 32px;
}

.side-nav-links li a {
    font-size: 30px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    display: inline-block;
}

.side-nav-links li a:hover {
    transform: translateX(10px);
}

.side-panel-footer .social-links {
    display: flex;
    gap: 24px;
}

.side-panel-footer .social-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .side-panel {
        padding: 40px 20px;
    }

    .side-nav-links li a {
        font-size: 24px;
    }
}


/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
    /* Offset the padding to keep it aligned to the right */
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.hamburger:hover span:nth-child(2) {
    width: 20px;
}


/* Hero Section */
.hero {
    padding-top: 100px;
    padding-bottom: 40px;
}

.hero-title-wrapper.ticker-container,
.ticker-container {
    position: relative;
    margin-bottom: 80px;
    overflow: hidden;
    width: 100%;
}

.ticker-track {
    display: flex;
    width: fit-content;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-track h1 {
    white-space: nowrap;
    padding-right: 80px;
    /* Space between words */
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
        /* Moves by one copy's width */
    }
}

.hero h1 {
    font-size: clamp(80px, 16vw, 235px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.85;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(to right, #ff0096, #f53e44);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* NEW: Fullscreen Hero */
.hero-fullscreen {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000 url('assets/home.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-fullscreen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Subtle dark overlay for readability */
    z-index: 1;
}

.hero-fullscreen .ticker-container {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: -10vh;
    /* Moved up slightly for better visual balance */
}

.hero-fullscreen .ticker-track h1 {
    font-size: clamp(80px, 16vw, 235px);
    /* Restored original size */
    font-weight: 800;
    /* Restored original weight */
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(to right, #ff0096, #f53e44);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -0.05em;
    padding-right: 80px;
    /* Restored original space between words */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    /* Added shadow for depth */
}

.hero-fullscreen-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 0 40px;
}

.hero-fullscreen-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-fullscreen-footer .hero-footer-left {
    max-width: 600px;
}

.hero-fullscreen-footer .hero-footer-left p {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-fullscreen-footer {
        bottom: 20px;
        padding: 0 20px;
    }

    .hero-fullscreen-footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero-fullscreen-footer .hero-footer-left p {
        font-size: 14px;
        line-height: 1.4;
    }

    .hero-fullscreen-footer .hero-footer-right {
        align-self: flex-start;
        font-size: 12px;
    }
}

.hero-title-wrapper.ticker-container:hover .ticker-track {
    animation-play-state: paused;
}

.hero-dot {
    width: 25px;
    height: 25px;
    background-color: var(--text-primary);
    border-radius: 50%;
    margin-top: 40px;
    margin-left: 45%;
    /* Centered around the space as per original visual */
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
}

.hero-footer-left p {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(to right, #ff0096, #f53e44);
    padding: 20px 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
    border-radius: 0;
}

.btn:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

.hero-footer-photos-box {
    display: flex;
    gap: 24px;
    max-width: 1000px;
    /* Increased to fit more/larger photos */
    margin-top: -40px;
}

.photo-item {
    width: 240px;
    /* Increased from 180px */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-footer-right {
    font-size: 14px;
    font-weight: 600;
    align-self: flex-end;
}

.divider {
    height: 1px;
    background-color: var(--divider-color);
    width: 100%;
}

/* Slider Section */
.slider-section {
    padding: 0px 0 80px 0;
}

.mySwiper {
    width: 100%;
    height: 600px;
    border-radius: 4px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
}

.swiper-pagination-bullet {
    background: #fff !important;
}

@media (max-width: 768px) {
    .mySwiper {
        height: 400px;
    }
}

/* Portfolio Grid Section */
.portfolio-grid-section {
    padding: 80px 0;
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-card {
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.portfolio-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 24px;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(to right, #ff0096, #f53e44);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.portfolio-category {
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    display: flex;
    gap: 80px;
}

.contact-left {
    flex: 1;
}

.contact-right {
    flex: 1;
    display: flex;
    gap: 40px;
}

.section-label {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    background-color: var(--input-bg);
    border: none;
    padding: 20px;
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    outline: none;
    color: var(--text-primary);
}

textarea.form-field {
    height: 180px;
    resize: none;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: none;
    border-bottom: 2px solid var(--text-primary);
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    padding: 10px;
    margin-top: 32px;
    cursor: pointer;
    text-transform: uppercase;
}

.info-column:first-child {
    flex: 2;
}

.info-column:last-child {
    flex: 1;
}

.info-column h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.info-item {
    margin-bottom: 40px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.info-item .label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.info-item p {
    margin: 0;
}

/* Studio Page */
.studio-content-section {
    padding: 80px 0;
}

.studio-content-section.didattica {
    padding: 40px 0;
}

.studio-content-section.didattica .section-label {
    margin-bottom: 0px;
    background: linear-gradient(to right, #ff0096, #f53e44);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.studio-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.studio-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.studio-text .large-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.studio-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.feature-item h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
}

.studio-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .studio-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .studio-image {
        aspect-ratio: 16 / 9;
    }
}

/* Footer Section */
.footer {
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.footer-instagram {
    flex: 2;
    min-width: 300px;
}

.footer-instagram h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.footer-social-link {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-social-link:hover {
    opacity: 0.7;
}

.footer-social-link svg {
    width: 24px;
    height: 24px;
}

.copyright-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-list li a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.link-list li a:hover {
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 100px;
    position: relative;
    padding-bottom: 40px;
}

.footer-bottom-info {
    display: flex;
    gap: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    z-index: 10;
}

.footer-brand-logo {
    font-size: clamp(100px, 25vw, 400px);
    font-weight: 900;
    line-height: 0.7;
    letter-spacing: -0.04em;
    position: absolute;
    right: -40px;
    bottom: -20px;
    color: var(--text-primary);
    pointer-events: none;
}

/* Docenti Section */
.docenti-section {
    padding: 80px 0;
}

.docenti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.docente-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.docente-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}

.docente-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.docente-card:hover .docente-image-wrapper img {
    transform: scale(1.05);
}

.docente-name {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .docenti-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .docenti-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.image-modal.active {
    display: block;
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border-radius: 4px;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .image-modal-content {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .hero h1,
    .ticker-track h1,
    .hero-fullscreen .ticker-track h1 {
        font-size: clamp(110px, 25vw, 160px);
        padding-right: 40px;
        /* Reducing padding between words on mobile */
    }

    .hero-fullscreen .ticker-container {
        margin-top: -20vh; /* Moved significantly higher on mobile as requested */
    }

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

    .hero-footer-photos-box {
        flex-direction: column;
        max-width: 100%;
        margin-top: 0;
        width: 100%;
    }

    .photo-item {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 1024px) {
    .contact-section {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    text-align: left;
}

.cta-section .hero-title-wrapper {
    margin-bottom: 40px;
}

.cta-section .hero-title-wrapper h1 {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cta-section .hero-title-wrapper h1:hover {
    opacity: 0.8;
}

.cta-section .hero-footer {
    border-bottom: none;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0;
    }
}