:root {
    --warhol-yellow: #FFE135;
    --art-black: #1A1A1A;
    --paper-white: #FDFBF7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Nascondiamo il cursore di default per usare il nostro */
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--paper-white);
    color: var(--art-black);
    overflow-x: hidden;
}

/* Cursore Personalizzato (Animato) */
.custom-cursor {
    width: 25px;
    height: 25px;
    background-color: var(--warhol-yellow);
    border: 3px solid var(--art-black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: transparent;
}

/* Forme Astratte Fluttuanti (Stile Pop Art) */
.art-shape {
    position: absolute;
    z-index: -1;
    border: 4px solid var(--art-black);
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background-color: var(--warhol-yellow);
    border-radius: 50%;
    top: 10%;
    left: -50px;
    box-shadow: 10px 10px 0px var(--art-black);
}

.shape-2 {
    width: 150px;
    height: 150px;
    background-color: #FF5733; /* Un tocco di arancio pop */
    top: 60%;
    right: -30px;
    transform: rotate(45deg);
    box-shadow: 10px 10px 0px var(--art-black);
    animation-direction: reverse;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(15deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Navigazione */
nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 50px;
    align-items: center;
    border-bottom: 4px solid var(--art-black);
    background-color: var(--warhol-yellow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.warhol-logo {
    width: 35px; /* Regola la grandezza della banana */
    height: auto;
    margin-right: 12px;
    transform: rotate(15deg); /* Leggera inclinazione per dare un tocco artistico */
}

.nav-links a {
    text-decoration: none;
    color: var(--art-black);
    margin-left: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--art-black);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Sezione Hero */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

h1 {
    font-size: 5rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.highlight {
    background-color: var(--warhol-yellow);
    padding: 0 15px;
    border: 4px solid var(--art-black);
    box-shadow: 8px 8px 0px var(--art-black);
    display: inline-block;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.highlight:hover {
    transform: rotate(2deg) scale(1.05);
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 40px;
}

/* Bottoni in stile Neo-Brutalism */
.btn {
    text-decoration: none;
    background-color: var(--art-black);
    color: var(--warhol-yellow);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid var(--art-black);
    text-transform: uppercase;
    box-shadow: 8px 8px 0px var(--warhol-yellow);
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--warhol-yellow);
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px var(--warhol-yellow);
}

/* Layout Sezioni */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 5px solid var(--warhol-yellow);
    display: inline-block;
    padding-bottom: 10px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-card {
    background: var(--paper-white);
    border: 4px solid var(--art-black);
    padding: 40px;
    box-shadow: 10px 10px 0px var(--art-black);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 20px 20px 0px var(--warhol-yellow);
}

.about-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Progetti Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    border: 4px solid var(--art-black);
    background: #fff;
    box-shadow: 8px 8px 0px var(--art-black);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px var(--warhol-yellow);
}

.project-image-placeholder {
    height: 200px;
    background-color: #ddd;
    border-bottom: 4px solid var(--art-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    background-image: repeating-linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0), repeating-linear-gradient(45deg, #f0f0f0 25%, #fff 25%, #fff 75%, #f0f0f0 75%, #f0f0f0);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: var(--art-black);
    font-weight: bold;
    border-bottom: 2px solid var(--art-black);
    padding-bottom: 2px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    border: 5px solid var(--art-black);
    box-shadow: 10px 10px 0px var(--warhol-yellow);
    overflow: hidden;
    background-color: #eee;
    transition: transform 0.4s ease;
}

.team-member:hover .member-photo {
    transform: scale(1.05) rotate(5deg);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Se l'immagine non è trovata, mostra il colore grigio di base */
}

.team-member h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.team-member h4 {
    color: #666;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--art-black);
    color: var(--paper-white);
    text-align: center;
    padding: 80px 20px;
    border-top: 5px solid var(--warhol-yellow);
}

footer h2 {
    border-bottom: none;
    color: var(--warhol-yellow);
}

footer .btn {
    background-color: var(--warhol-yellow);
    color: var(--art-black);
    border-color: var(--warhol-yellow);
    box-shadow: 8px 8px 0px var(--paper-white);
    margin: 30px 0;
    display: inline-block;
}

footer .btn:hover {
    box-shadow: 12px 12px 0px var(--paper-white);
}

/* Responsive per mobile */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .about-grid, .team-grid { grid-template-columns: 1fr; }
    nav { flex-direction: column; gap: 15px; }
    .custom-cursor { display: none; } /* Disabilita cursore custom su mobile */
}