/* ---------------------------------------------------------
   PROJECT: SABRINA COCCHIARA PORTFOLIO
   FILE: style.css
   DESCRIZIONE: Stili globali, variabili e design system.
   ---------------------------------------------------------
*/

/* IMPORTAZIONE FONT GOOGLE */
/* Playfair Display per titoli (Eleganza), Montserrat per testi (Leggibilità moderna) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #b21e20; /* Rosso Valentino */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth easing */
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Previene scroll orizzontale indesiderato */
}

/* CUSTOM SCROLLBAR (Richiesta Specifica) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.text-accent {
    color: var(--accent-color);
}

/* GLASSMORPHISM UTILITY CLASSES */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 0; /* Spigoli vivi per eleganza, o cambiare a px se preferito */
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
    color: #fff;
    font-weight: bold;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Immagine di sfondo Hero */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Oscurata per far risaltare il testo */
    z-index: -1;
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

/* BUTTONS */
.btn-main {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 35px;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(178, 30, 32, 0.2); /* Leggero sfondo rosso trasparente */
}

.btn-main:hover {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(178, 30, 32, 0.4);
}

/* MASONRY GALLERY (CSS Columns approach for performance) */
.gallery-section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

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

/* ANIMAZIONI GENERICHE */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* FOOTER */
footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-icon {
    color: #fff;
    font-size: 1.5rem; /* Richiede FontAwesome o SVG */
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Qui andrebbe implementato un menu hamburger JS */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .masonry-grid {
        column-count: 1; /* Una colonna su mobile */
    }
}

/* --- AGGIUNTE PER PAGINE INTERNE --- */

/* ABOUT PAGE STYLES */
.about-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    padding-top: 80px;
}
.about-image {
    flex: 1;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    min-height: 50vh;
}
.about-text {
    flex: 1;
    min-width: 300px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-color);
}
.stats-list {
    list-style: none;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}
.stats-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* CONTACT FORM STYLES */
.contact-wrapper {
    max-width: 800px;
    margin: 120px auto 50px;
    padding: 40px;
}
.form-group {
    margin-bottom: 25px;
}
.form-control {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #333;
    border-bottom: 2px solid #333;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
    background: rgba(255,255,255,0.02);
}
/* Button Email Rosso */
.btn-email-highlight {
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    transition: var(--transition);
}
.btn-email-highlight:hover {
    box-shadow: 0 0 30px rgba(178, 30, 32, 0.6);
    transform: scale(1.05);
}

/* RESPONSIVE UTILS */
@media (max-width: 768px) {
    .about-text { padding: 30px; }
    .contact-wrapper { padding: 20px; margin-top: 100px; }
}