/* Stile generale ispirato ai primi anni 2000 */
@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&family=Roboto:wght@400;700&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #1a0315;
    --accent-color: #ff0000;
    --text-color: #ffffff;
    --dark-bg: #0a0a0a;
    --light-bg: #1a1a1a;
    --flame-gradient: linear-gradient(0deg, #ff0000, #ff8c00);
    --border-glow: 0 0 5px #ff0000, 0 0 10px #ff0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-image: url('images/bg-texture.jpg');
    background-repeat: repeat;
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* TV Noise Effect */
.tv-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feComposite operator="over" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.1"/></svg>');
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    position: relative;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    padding: 5px;
}

.logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.logo-image {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px #ff0000);
}

.title {
    font-family: 'Metal Mania', cursive;
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.flame-divider {
    height: 2px;
    background: var(--flame-gradient);
    width: 80%;
    margin: 15px auto 0;
    box-shadow: var(--border-glow);
}

/* Layout principale */
.main-layout {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

/* Caroselli verticali laterali */
.side-carousel {
    width: 30%;
    background-color: rgba(20, 20, 20, 0.7);
    border: 2px solid #400;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    position: relative;
}

.carousel {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
}

.carousel-slide {
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    flex-shrink: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.carousel-slide img {
    width: 125%;
    height: auto;
    border: 2px solid #500;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    max-height: 380px;
    transform: scale(1.25);
    margin: 0 auto;
}

.carousel-slide img:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.active {
    background-color: var(--accent-color);
}

.carousel-text {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    color: #ff6600;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

/* Contenuto centrale */
.center-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.title-section {
    text-align: center;
    margin-bottom: 10px;
}

.flame-text {
    font-family: 'Metal Mania', cursive;
    font-size: 2rem;
    background: linear-gradient(0deg, #ff6600, #ffcc00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 3px rgba(255, 102, 0, 0.7);
    letter-spacing: 2px;
    animation: flicker 4s infinite alternate;
    font-weight: bold;
}

.intro-section {
    background-color: rgba(20, 20, 20, 0.7);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #400;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.loading-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.loading-text.loaded {
    opacity: 1;
    transform: translateY(0);
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.big-link {
    display: block;
    text-align: center;
    background: linear-gradient(45deg, #300, #500);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #700;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.big-link:hover {
    background: linear-gradient(45deg, #500, #800);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.big-link i {
    margin-right: 8px;
}

.meetup-section {
    background-color: rgba(20, 20, 20, 0.7);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #400;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.meetup-section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #ff6600;
}

.meetup-details {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.meetup-details i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #ff6600;
}

.meetup-theme {
    font-weight: bold;
    margin: 15px 0 10px;
    text-align: center;
    color: #ff6600;
}

/* Player Musicale */
.music-player {
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    border: 2px solid #400;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.cd-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.cd-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s linear;
}

.cd-image.spinning {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.player-info {
    flex: 1;
}

.track-name {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #300;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
}

.controls button:hover {
    background-color: #600;
    transform: scale(1.1);
}

#play-pause {
    width: 50px;
    height: 50px;
    background-color: #700;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--accent-color);
    margin-top: 30px;
}

footer p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #999;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #300;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: #700;
    transform: translateY(-5px);
}

/* Animazioni */
@keyframes flicker {
    0%, 80%, 90%, 95%, 100% {
        text-shadow: 0 0 3px #fff, 0 0 5px #ff6600;
    }
    85%, 93% {        
        text-shadow: none;
    }    
}

.neon-text {
    color: #fff;
    text-shadow: 0 0 3px #fff, 0 0 5px #ff0000;
    animation: neon 3s ease-in-out infinite alternate;
    font-family: 'Metal Mania', cursive;
    font-weight: bold;
    letter-spacing: 1px;
}

.section-title {
    margin: 40px 0 20px;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: var(--flame-gradient);
    margin: 10px auto 20px;
    box-shadow: var(--border-glow);
}

@keyframes neon {
    from {
        text-shadow: 0 0 3px #fff, 0 0 5px #ff0000;
    }
    to {
        text-shadow: 0 0 5px #fff, 0 0 10px #ff0000, 0 0 15px #ff0000;
    }
}

/* Video di YouTube */
.youtube-videos {
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    border: 2px solid #400;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.youtube-videos h2 {
    text-align: center;
    margin-bottom: 20px;
}

.videos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.video-item {
    flex: 1;
    min-width: 300px;
    border: 1px solid #500;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.video-title {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ff6600;
    text-align: center;
    padding: 10px;
    margin: 0;
    font-weight: bold;
    border-top: 1px solid #500;
}

/* Video singolo */
.single-video {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.single-video iframe {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    border: 3px solid #600;
}

/* Responsive */
@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }
    
    .side-carousel, .center-content {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .side-carousel {
        height: auto;
    }
    
    .carousel {
        height: 300px;
    }
    
    .music-player {
        flex-direction: column;
        text-align: center;
    }
    
    .cd-container {
        margin: 0 auto 20px;
    }
    
    .videos-container {
        flex-direction: column;
    }
    
    .video-item {
        margin-bottom: 15px;
    }
    
    /* Miglioramenti specifici per la leggibilità dei titoli su smartphone */
    .title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .flame-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
        text-shadow: 0 0 2px rgba(255, 102, 0, 0.8);
        animation: none; /* Disabilito l'animazione su mobile per migliorare la leggibilità */
    }
    
    .neon-text {
        text-shadow: 0 0 2px #fff, 0 0 4px #ff0000;
        animation: none; /* Disabilito l'animazione su mobile per migliorare la leggibilità */
    }
    
    .section-title {
        font-size: 1.4rem;
        margin: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }
    
    .flame-text {
        font-size: 1.3rem;
    }
}

/* Logo personalizzato - mano con corna in SVG */
.metal-horns-logo {
    width: 80px;
    height: 80px;
    fill: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.metal-horns-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px #ff0000);
}

/* Galleria foto */
.gallery-page {
    background-color: #000;
}

.gallery-nav {
    background-color: rgba(20, 20, 20, 0.7);
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #400;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    background-color: #400;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #700;
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.photo-gallery {
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 8px;
    border: 2px solid #400;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-item {
    background-color: #000;
    border: 2px solid #400;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    border-color: #700;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.upload-section {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 8px;
    border: 2px solid #400;
}

.photo-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(45deg, #300, #700);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.photo-link.large {
    font-size: 1.2rem;
    padding: 15px 30px;
}

.photo-link:hover {
    background: linear-gradient(45deg, #500, #900);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.photo-link i {
    margin-right: 10px;
}

/* Responsive per la galleria */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .gallery-item {
        border-width: 1px;
    }
    
    .photo-link.large {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

.custom-metal-logo {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px #f00);
    animation: metalShadowPulse 3s infinite alternate;
    transition: transform 0.3s ease;
}

.custom-metal-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px #f00);
}

.custom-metal-logo .metal-text {
    font-family: 'Metal Mania', cursive;
    font-weight: bold;
    font-size: 35px;
    text-transform: uppercase;
    fill: #f0f0f0;
    stroke: #600;
    stroke-width: 1px;
    paint-order: stroke fill;
}

.custom-metal-logo .metal-hand {
    fill: #f0f0f0;
    stroke: #600;
    stroke-width: 2px;
}

.custom-metal-logo .flames {
    fill: url(#flame-gradient);
    filter: blur(2px);
}

@keyframes metalShadowPulse {
    0% {
        filter: drop-shadow(0 0 5px #f00);
    }
    50% {
        filter: drop-shadow(0 0 8px #f00);
    }
    100% {
        filter: drop-shadow(0 0 12px #f00);
    }
}

.fire-metal-logo {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s ease;
}

.fire-metal-logo:hover {
    transform: scale(1.05);
}

.fire-metal-logo .fire-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, #300 0%, #000 80%);
    position: absolute;
    top: 10px;
    left: 10px;
    box-shadow: 0 0 20px #f00;
}

.fire-metal-logo .flame-base {
    fill: url(#fire-gradient);
    filter: blur(1px);
    transform-origin: center bottom;
    animation: flameFlicker 3s infinite alternate;
}

.fire-metal-logo .flame-layer {
    fill: url(#flame-yellow);
    filter: blur(2px);
    transform-origin: center bottom;
    animation: flameWave 4s infinite alternate;
}

.fire-metal-logo .metal-text-fire {
    font-family: 'Metal Mania', cursive;
    font-weight: bold;
    font-size: 32px;
    text-transform: uppercase;
    fill: #fff;
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px #f80);
    animation: textGlow 2s infinite alternate;
}

@keyframes flameFlicker {
    0%, 100% { 
        transform: scaleX(1) scaleY(1);
        opacity: 1;
    }
    25% { 
        transform: scaleX(0.95) scaleY(1.05);
        opacity: 0.8;
    }
    50% { 
        transform: scaleX(1.05) scaleY(0.95);
        opacity: 1;
    }
    75% { 
        transform: scaleX(0.98) scaleY(1.02);
        opacity: 0.9;
    }
}

@keyframes flameWave {
    0% { 
        transform: scaleX(1) rotate(0deg);
    }
    25% { 
        transform: scaleX(1.02) rotate(1deg);
    }
    50% { 
        transform: scaleX(0.98) rotate(-1deg);
    }
    75% { 
        transform: scaleX(1.03) rotate(0.5deg);
    }
    100% { 
        transform: scaleX(0.99) rotate(-0.5deg);
    }
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px #f80);
    }
    to {
        filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px #f60) drop-shadow(0 0 10px #f00);
    }
} 