/* OpenPortfolio - CSS Dinamico Generato */
/* Aggiornato: 2026-02-10 14:46:10 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lato:wght@400;500;600;700&display=swap');

:root {
    --color-bg: #0f0f0f;
    --color-bg-secondary: #1a1a1a;
    --color-accent: #c4c700;
    --color-text: #ffffff;
    --color-text-muted: #666666;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Lato', serif;
    --transition: 0.3s ease;
    --animation-duration: 0.6s;
    /* Hero */
    --hero-overlay-color: #000000;
    --hero-overlay-opacity: 0.9;
    /* Navbar */
    --navbar-bg: #0f0f0f;
    --navbar-text: #ffffff;
    /* Titoli */
    --color-titles: #ffffff;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Override Bootstrap colors */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--color-text) !important;
}

p, li, span, div {
    color: inherit;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    color: var(--color-titles, var(--color-text)) !important;
}

strong, b, label {
    color: var(--color-text) !important;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-text);
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--color-bg) 70%);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: var(--hero-overlay-opacity, 0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay-color, #000);
    opacity: calc(1 - var(--hero-overlay-opacity, 0.7));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp var(--animation-duration) ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp var(--animation-duration) ease-out 0.2s both;
}

/* Navbar */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background var(--transition), padding var(--transition);
}

.navbar-custom.scrolled {
    background: var(--navbar-bg, rgba(10, 10, 15, 0.95));
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navbar-text, #fff) !important;
}

.nav-link {
    color: var(--navbar-text, #fff) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-accent) !important;
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    color: var(--navbar-text, #fff) !important;
}

.dropdown-menu {
    background: var(--navbar-bg, #0a0a0f) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.dropdown-item {
    color: var(--navbar-text, #fff) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--color-accent) !important;
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition), left var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    left: 10%;
}

/* Sezioni */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    color: var(--color-titles, var(--color-text)) !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
}

/* Cards */
.card-custom {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-custom img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition);
}

.card-custom:hover img {
    transform: scale(1.05);
}

.card-body-custom {
    padding: 1.5rem;
}

.card-title-custom {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Form Inputs */
.form-control {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    background: var(--color-bg-secondary);
    border-color: var(--color-accent);
    color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.form-label {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

/* Gallery - Masonry */
.gallery-masonry {
    columns: 3;
    column-gap: 1.5rem;
}

.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Gallery - Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Gallery - Full Width (Minimal Photography Style) */
.gallery-fullwidth {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
    margin: 0;
}

.gallery-fullwidth .gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}

.gallery-fullwidth .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-fullwidth .gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-fullwidth .gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}

.gallery-fullwidth .gallery-item:hover::after {
    background: rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .gallery-fullwidth {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-fullwidth {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Gallery Item */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Buttons */
.btn-accent {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-accent:hover {
    background: var(--color-text);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.btn-outline-accent {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-outline-accent:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Footer */
.footer {
    background: var(--color-bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links a {
    color: var(--color-text-muted);
    margin: 0 1rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--color-text);
    margin: 0 0.5rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: var(--color-accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-masonry {
        columns: 2;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .gallery-masonry {
        columns: 1;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .navbar-custom {
        padding: 0.75rem 1rem;
    }
}

/* Utility Classes */
.text-accent { color: var(--color-accent); }
.text-muted-custom { color: var(--color-text-muted); }
.bg-secondary-custom { background: var(--color-bg-secondary); }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-secondary) 25%, rgba(255,255,255,0.1) 50%, var(--color-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Ken Burns Effect */
.hero-bg.ken-burns {
    animation: kenBurns 20s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    25% {
        transform: scale(1.1) translate(-2%, -1%);
    }
    50% {
        transform: scale(1.15) translate(1%, 2%);
    }
    75% {
        transform: scale(1.1) translate(2%, -1%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* Tema Minimal Photography */
body {
    background: #0f0f0f;
}

.navbar-custom {
    background: transparent;
}

.navbar-custom.scrolled {
    background: rgba(15, 15, 15, 0.95);
}

.hero {
    background: #0f0f0f;
}

.hero-content {
    background: transparent;
}

.hero-title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    color: #fff;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-subtitle {
    color: #999;
    font-weight: 300;
}

.section {
    background: #0f0f0f;
}

.section-title {
    font-weight: 300;
    letter-spacing: 0.05em;
}

.section-title::after {
    background: #fff;
    height: 1px;
    width: 40px;
}

.btn-accent {
    background: var(--color-accent) !important;
    border: 1px solid var(--color-accent) !important;
    color: #fff !important;
}

.btn-accent:hover {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    filter: brightness(1.2);
}

.btn-outline-accent {
    border-color: rgba(255,255,255,0.3) !important;
    color: #fff !important;
    background: transparent !important;
}

.btn-outline-accent:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-color: #fff !important;
}

.card-custom {
    background: #1a1a1a;
    border: none;
    border-radius: 0;
}

.card-custom:hover {
    transform: none;
    box-shadow: none;
}

.footer {
    background: #0f0f0f;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Dropdown per tema minimal */
.dropdown-menu {
    background: #1a1a1a !important;
}

.dropdown-item {
    color: #fff !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--color-accent) !important;
    color: #fff !important;
}

/* Full-width container for minimal layout */
.section.minimal-photo-section {
    padding: 0;
}

.section.minimal-photo-section .container {
    max-width: 100%;
    padding: 0;
}

