/*--Stylesheet Sito LLM @Sawy--*/

/* --- Reset & Variables --- */
:root {
    --primary-color: #283c51; /* Dark Blue/Grey */
    --accent-color: #e43725;  /* Red contrasto e un poco di HEMA vibes?*/
    --bg-light: #f8f9fa;	/* light-gray per le rows*/
    --text-color: #333;
    --white: #ffffff;
    --spacing: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: '', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* --- Layout Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); color: var(--white); }

h1, h2, h3 {
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: var(--primary-color);
}

.bg-dark h2 { color: var(--white); }

/* --- Navigation --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* --- Language Switcher OBSOLETO AL MOMENTO--- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .nav-right {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* --- Hero --- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/hero-bg.webp'); /* per gestire l'immagine nella Hero */
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 1rem;
}

.hero h1 { color: var(--white); font-size: 2.5rem; }
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: bold;
}

/* --- Content Grid --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Schedule Table --- */
.schedule-table-wrapper {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.schedule-table th, .schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.schedule-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- News Section --- */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.news-meta-item {
    display: flex;
    flex-direction: column;
}

.news-meta-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.news-meta-value {
    font-weight: 600;
    color: var(--primary-color);
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.news-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .news-card {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 1.5rem;
    }
    /* Ensure images don't overflow */
    .responsive-img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }
    
    .news-image {
        min-height: 180px;
    }
    
    .news-meta {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* --- Media Gallery --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* calcolato per ratio 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s;
}

.photo-grid img:hover {
    transform: scale(1.8);
}

/* --- Resources --- */
.resource-list {
    list-style: none;
}

.file-link {
    display: block;
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.file-link:hover {
    background: #e9ecef;
}

/* --- Contact & Footer --- */
.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: #bababa; /* Light gray contrast on dark bg */
    text-decoration: none; /* Remove default underline */
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

/* Un poco animato just because */
.contact-info a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color); /* Rosso come definito sopra */
    transition: width 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-info a:hover::after {
    width: 100%; /* Underline slides in */
}

.contact-info a:active {
    transform: scale(0.90);
    color: #b02a1d;
}

/* Un po di fun per Instagram link hover */

.insta-link {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    transition: opacity 0.3s;
}

.insta-link:hover {
    opacity: 0.8;
}

.insta-link:hover svg {
    transform: scale(1.3); /* Un po di zoom */
}

/* Force the SVG */
.insta-link svg {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease; /*Più colore */
    /* Gradient to the stroke specifically */
    stroke: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23f09433"/><stop offset="25%" stop-color="%23e6683c"/><stop offset="50%" stop-color="%23dc2743"/><stop offset="75%" stop-color="%23cc2366"/><stop offset="100%" stop-color="%23bc1888"/></linearGradient></svg>#g');
}

footer {
    text-align: center;
    padding: 2rem;
    background: #1a252f;
    color: #ccc;
    font-size: 0.9rem;
}

/* --- Mobile Responsiveness hamburger gestito in .js --- */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .nav-links.nav-active {
        display: flex;
    }
}
    
    .hero h1 { font-size: 2rem; }
}
