/* ===== VARIABILI & RESET ===== */
:root {
--primary-color: #00629B; /* IEEE Blue */
--secondary-color: #002855; /* Darker Blue */
--accent-color: #E87722; /* Orange accent for CTAs */
--text-color: #333333;
--light-bg: #f4f7fb;
--white: #ffffff;
--shadow: 0 4px 15px rgba(0,0,0,0.1);
--transition: all 0.3s ease;
}

html {
scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
font-family: 'Montserrat', sans-serif;
margin: 0 0 15px 0;
}

a {
text-decoration: none;
color: inherit;
transition: var(--transition);
}

img {
max-width: 100%;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.section {
padding: 80px 0;
}

.bg-light {
background: var(--light-bg);
}

section, #deadlines, #tracks, #overview, #keynotes{
scroll-margin-top: 116.59px; /* Regola questo valore in base all'altezza del tuo header */
}

/* ===== HEADER & NAVIGATION ===== */
.sticky-header {
display: flex;
justify-content: space-between;
align-items: flex-end; /* Allinea il menu in basso */
background: var(--white);
color: var(--text-color);
padding: 15px 5%;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-left .logos-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-left .logos-row img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-link {
    text-decoration: none;
    display: flex;       /* Aiuta a centrare l'immagine nel link */
}

.header-right {
display: flex;
align-items: center;
padding-bottom: 10px; 
}

.nav-menu {
display: flex;
align-items: center;
}

/* Link semplici del menu */
.nav-menu > a {
color: var(--secondary-color);
margin-left: 25px;
font-weight: 600;
font-size: 1rem;
position: relative;
}

.nav-menu > a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -3px;
left: 0;
background-color: var(--accent-color);
transition: width 0.3s;
}

.nav-menu > a:hover::after,
.nav-menu > a.current-page::after {
width: 100%;
}

.nav-menu > a:hover,
.nav-menu > a.current-page {
color: var(--accent-color);
}

/* --- DROPDOWN MENU (CSS PURO) --- */
.dropdown {
position: relative;
display: inline-block;
}

/* Link principale (es. Conference) */
.dropdown .dropbtn {
margin-left: 20px;
padding: 10px 0; /* Area cliccabile verticale */
cursor: pointer;
font-weight: 600;
color: var(--secondary-color);
font-size: 1rem;
font-family: 'Open Sans', sans-serif; /* Assicura font coerente */
}

.dropdown .dropbtn i {
font-size: 0.8em;
margin-left: 5px;
color: #888;
}

/* Contenuto del menu a tendina (nascosto di base) */
.dropdown-content {
display: none; /* Nascosto */
position: absolute;
background-color: white;
min-width: 200px;
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
z-index: 1000;
top: 100%; /* Appare subito sotto */
left: 0;
border-radius: 4px;
padding: 5px 0;
border-top: 3px solid var(--accent-color);
}

/* Link interni al dropdown */
.dropdown-content a {
color: #333;
padding: 10px 20px;
text-decoration: none;
display: block;
font-size: 0.9rem;
margin-left: 0; /* Resetta margini ereditati */
border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:last-child { border-bottom: none; }

/* Mostra menu al passaggio del mouse */
.dropdown:hover .dropdown-content {
display: block;
}

.dropdown-content a:hover {
background-color: #f9f9f9;
color: var(--accent-color);
}
/* --- FINE DROPDOWN --- */

.nav-btn {
background: var(--accent-color);
padding: 10px 25px;
border-radius: 25px;
color: white !important;
margin-left: 25px; /* Spazio extra prima del bottone */
}

.nav-btn::after { display: none; }

.nav-btn:hover {
background: #d66a1a;
transform: translateY(-2px);
}

.menu-toggle {
display: none;
font-size: 1.8rem;
cursor: pointer;
color: var(--secondary-color);
margin-bottom: 10px;
}

/* ===== HERO SECTION (HOME) ===== */
.hero {
position: relative;
height: 85vh;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}

.hero img.slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
opacity: 0; 
animation: slide 24s infinite; 
}

.hero img:nth-child(2) { animation-delay: 0s; }
.hero img:nth-child(3) { animation-delay: 6s; }
.hero img:nth-child(4) { animation-delay: 12s; }
.hero img:nth-child(5) { animation-delay: 18s; }

@keyframes slide {
0% { opacity: 0; transform: scale(1); }
5% { opacity: 1; }
25% { opacity: 1; transform: scale(1.05); }
30% { opacity: 0; }
100% { opacity: 0; }
}

.overlay {
background: linear-gradient(135deg, rgba(0,40,85,0.9) 0%, rgba(0,98,155,0.7) 100%);
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
padding: 20px;
}

.hero-content {
max-width: 800px;
animation: fadeIn 1.5s ease;
}

.badge {
background: rgba(255,255,255,0.2);
padding: 5px 15px;
border-radius: 50px;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
}

.hero h1 {
font-size: 3rem;
margin: 20px 0 10px;
font-weight: 700;
}

.subtitle {
font-size: 1.2rem;
font-weight: 300;
margin-bottom: 30px;
opacity: 0.9;
}

.location {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 40px;
}

.cta-group {
display: flex;
gap: 15px;
justify-content: center;
}

.btn {
padding: 12px 30px;
border-radius: 5px;
font-weight: 600;
text-transform: uppercase;
font-size: 0.9rem;
cursor: pointer;
}

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

.btn-primary:hover {
background: #d66a1a;
transform: translateY(-3px);
}

.btn-outline {
border: 2px solid white;
color: white;
}

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

.btn-full {
display: block;
width: 100%;
text-align: center;
box-sizing: border-box; 
}

/* ===== PAGE HEADER (PER COMMITTEE E ALTRE PAGINE) ===== */

.page-header {
background: linear-gradient(135deg, rgba(0,40,85,0.9) 0%, rgba(0,98,155,0.8) 100%), url('images/in_pages/flyer_backgroud.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;

height: 350px;
width: 100%;
position: relative;

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

text-align: center;     
color: white;
}

.page-header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
}

.page-header p {
font-size: 1.2rem;
opacity: 0.9;
}

/* ===== COMMITTEE STYLES ===== */
.committee-group {
margin-bottom: 50px;
}

.group-title {
text-align: center;
color: var(--primary-color);
font-size: 2rem;
margin-bottom: 40px;
}

.committee-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
}

.member-card {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
text-align: center;
border: 1px solid #eee;
transition: var(--transition);
}

.member-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow);
border-color: var(--accent-color);
}

.member-info h3 {
color: var(--secondary-color);
margin-bottom: 5px;
font-size: 1.3rem;
}

.member-info .role {
color: var(--accent-color);
font-weight: 700;
font-size: 0.95rem;
margin-bottom: 10px;
text-transform: uppercase;
}

.member-info .affiliation {
color: #666;
font-style: italic;
font-size: 0.9rem;
}

.email {
color: #000000;
font-size: 0.9rem;
}

.committee-list-simple ul {
list-style: none;
padding: 0;
max-width: 800px;
margin: 0 auto;
}

.committee-list-simple li {
background: #f9f9f9;
margin-bottom: 10px;
padding: 15px 20px;
border-left: 4px solid var(--primary-color);
border-radius: 4px;
}

.steering-list {
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}

.steering-item {
display: flex;
align-items: center;
gap: 15px;
background: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
border: 1px solid #eee;
}

.steering-photo {
width: 80px;
height: 80px;
border-radius: 50%;
background-color: #f0f0f0;
object-fit: cover;
border: 2px solid #00629B;
flex-shrink: 0;
}

.steering-info {
font-size: 0.95rem;
line-height: 1.4;
color: #333;
}

/* ===== COMMON SECTIONS ===== */
.section-header {
text-align: center;
margin-bottom: 50px;
}

.section-header h2 {
font-size: 2.2rem;
color: var(--secondary-color);
}

.line {
width: 60px;
height: 4px;
background: var(--accent-color);
margin: 10px auto;
}

/* ===== ABOUT GRID ===== */
.about-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 40px;
align-items: start;
}

.check-list {
list-style: none;
padding: 0;
margin-top: 20px;
}

.check-list li {
margin-bottom: 10px;
font-weight: 600;
color: var(--primary-color);
}

.check-list i {
margin-right: 10px;
}

/* SIDEBAR: FLYER */
.flyer-card {
background: white;
padding: 20px;
border-radius: 12px;
box-shadow: var(--shadow);
text-align: center;
}

.flyer-card h4 {
color: var(--secondary-color);
margin-bottom: 15px;
}

.flyer-img {
width: 100%;
height: auto;
border-radius: 6px;
margin-bottom: 15px;
border: 1px solid #eee;
transition: transform 0.3s ease;
}

.flyer-img:hover {
transform: scale(1.02);
}

/* STATS */
.about-stat {
display: flex;
flex-direction: row; 
gap: 20px;
margin-top: 30px;
}

.stat-box {
flex: 1; 
background: var(--secondary-color);
color: white;
padding: 20px;
border-radius: 10px;
text-align: center;
box-shadow: var(--shadow);
}

.stat-box i {
font-size: 2rem;
margin-bottom: 5px;
opacity: 0.8;
}

.stat-box h3 {
font-size: 2rem;
margin: 0;
}

/* ===== TOPICS CARD GRID ===== */
.topic-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
}

.card {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
text-align: center;
transition: var(--transition);
border-top: 4px solid transparent;
}

.card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
border-top: 4px solid var(--accent-color);
}

.card .icon {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 20px;
}

.card h3 {
font-size: 1.2rem;
color: var(--secondary-color);
}

/* ===== TIMELINE VERTICALE ===== */
.timeline {
position: relative;
max-width: 900px;
margin: 0 auto;
}

.timeline::after {
content: '';
position: absolute;
width: 4px;
background-color: #ddd;
top: 0;
bottom: 0;
left: 50%;
margin-left: -2px;
}

.timeline-container {
padding: 10px 40px;
position: relative;
background-color: inherit;
width: 50%;
box-sizing: border-box;
}

.timeline-container.left { left: 0; }
.timeline-container.right { left: 50%; }

.timeline-container::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
right: -10px;
background-color: var(--white);
border: 4px solid var(--primary-color);
top: 25px;
border-radius: 50%;
z-index: 1;
}

.timeline-container.right::after {
left: -10px;
}

.timeline .content {
padding: 20px 30px;
background-color: white;
position: relative;
border-radius: 6px;
box-shadow: var(--shadow);
border-left: 5px solid var(--primary-color);
}

.timeline .content.highlight {
border-left-color: var(--accent-color);
background-color: #fff9f5;
}

.date-badge {
position: absolute;
top: -15px;
right: 20px;
background: var(--primary-color);
color: white;
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 0.9rem;
text-align: center;
line-height: 1.1;
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.date-badge.highlight-date {
background: var(--accent-color);
}

.timeline h4 {
margin-top: 10px;
color: var(--secondary-color);
font-size: 1.2rem;
}

.timeline p {
margin-bottom: 0;
font-size: 0.95rem;
color: #555;
}

.tl-icon {
position: absolute;
bottom: 10px;
right: 15px;
font-size: 3rem;
color: rgba(0,0,0,0.03);
z-index: 0;
}

/* ===== SPONSORS ===== */
.sponsor-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 50px;
align-items: center;
margin-top: 40px;
}

.sponsor-grid img {
height: 70px;
width: auto;
object-fit: contain;
filter: grayscale(100%);
opacity: 0.6;
transition: var(--transition);
}

.sponsor-grid img:hover {
filter: grayscale(0%);
opacity: 1;
transform: scale(1.1);
}

/* ===== FOOTER ===== */
.site-footer {
background: #0b162a;
color: #b0c4de;
padding-top: 60px;
}

.footer-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: 1200px;
margin: auto;
padding: 0 20px 40px;
gap: 40px;
}

.footer-section h4 {
color: white;
font-size: 1.2rem;
margin-bottom: 20px;
position: relative;
}

.footer-section ul {
list-style: none;
padding: 0;
}

.footer-section ul li {
margin-bottom: 10px;
}

.footer-section a:hover {
color: var(--accent-color);
}

.socials {
display: flex;
gap: 15px;
margin-top: 15px;
}

.socials a {
font-size: 1.5rem;
color: white;
}

.footer-bottom {
background: #060e1c;
text-align: center;
padding: 20px;
font-size: 0.85rem;
}

/* ===== PAGINA VENUE ===== */

.venue-image-card {
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow);
margin-bottom: 25px;
position: relative;
}

.venue-image-card img {
width: 100%;
height: auto;
display: block;
transition: transform 0.3s ease;
}

.venue-image-card:hover img {
transform: scale(1.03);
}

.venue-image-card .caption {
background: rgba(0, 40, 85, 0.8);
color: white;
padding: 8px 15px;
font-size: 0.85rem;
position: absolute;
bottom: 0;
width: 100%;
}

.venue-info-box {
background: white;
padding: 25px;
border-radius: 12px;
border-left: 5px solid var(--accent-color);
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.venue-info-box h4 {
color: var(--secondary-color);
margin-bottom: 15px;
font-size: 1.2rem;
display: flex;
align-items: center;
gap: 10px;
}

.venue-info-box p {
font-size: 0.95rem;
color: #555;
margin-bottom: 15px;
line-height: 1.5;
}

.venue-info-box p:last-child {
margin-bottom: 0;
}

.map-container {
width: 100%;
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow);
border: 4px solid white;
}

.map-container iframe {
display: block; /* Rimuove lo spazio bianco sotto l'iframe */
}

/* ===== PAGINA PROGRAMMA ===== */

/* Speaker Images (Rotonde) */
.speaker-img-container {
width: 120px;
height: 120px;
margin: 0 auto 20px;
border-radius: 50%;
overflow: hidden;
border: 4px solid #f4f7fb;
box-shadow: var(--shadow);
}

.speaker-img-container img {
width: 100%;
height: 100%;
object-fit: cover;
}

.speech-title {
color: var(--secondary-color);
font-weight: 600;
margin-top: 10px;
font-size: 0.95rem;
font-style: italic;
}


.schedule-wrapper {
max-width: 900px;
margin: 40px auto 0;
}

.schedule-day {
margin-bottom: 40px;
background: white;
border-radius: 12px;
box-shadow: var(--shadow);
overflow: hidden;
}

.day-title {
background: var(--secondary-color);
color: white;
margin: 0;
padding: 20px 30px;
font-size: 1.3rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}

.day-subtitle {
font-size: 0.9rem;
font-weight: 400;
opacity: 0.8;
background: rgba(255,255,255,0.2);
padding: 5px 15px;
border-radius: 20px;
}

.schedule-item {
display: flex;
padding: 25px 30px;
border-bottom: 1px solid #eee;
transition: background 0.2s;
}

.schedule-item:last-child {
border-bottom: none;
}

.schedule-item:hover {
background: #f9fcff;
}

.schedule-item.highlight {
background: #fffcf0;
border-left: 5px solid var(--accent-color);
}

.schedule-item .time {
width: 140px;
flex-shrink: 0;
color: var(--accent-color);
font-weight: 700;
font-size: 1.1rem;
}

.schedule-item .details h4 {
margin: 0 0 5px;
font-size: 1.15rem;
color: #333;
}

.schedule-item .details p {
margin: 0;
color: #666;
font-size: 0.95rem;
}

/* ===== PAGINA EDITIONS ===== */

.edition-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
min-height: 280px; /* Altezza uniforme */
}

.edition-year {
background: var(--light-bg);
color: var(--primary-color);
font-weight: 800;
font-size: 1.5rem;
padding: 10px 20px;
border-radius: 50px;
margin-bottom: 15px;
}

.edition-location {
color: var(--text-color);
font-weight: 600;
margin-bottom: 5px;
}

.edition-desc {
font-size: 0.9rem;
color: #777;
margin-bottom: 20px;
}

.btn-outline-dark {
border: 2px solid var(--secondary-color);
color: var(--secondary-color);
padding: 8px 20px;
border-radius: 5px;
font-weight: 600;
text-transform: uppercase;
font-size: 0.85rem;
margin-top: auto;
}

.btn-outline-dark:hover {
background: var(--secondary-color);
color: white;
}

/* ===== NEWS SECTION ===== */

.news-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}

.news-card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid #eee;
display: flex;
flex-direction: column;
}

.news-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
border-color: var(--accent-color);
}

.news-image {
position: relative;
height: 200px;
overflow: hidden;
}

.news-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
transform: scale(1.1); /* Zoom lento all'hover */
}

.news-date {
position: absolute;
top: 15px;
right: 15px;
background: var(--accent-color);
color: white;
padding: 8px 12px;
border-radius: 8px;
text-align: center;
line-height: 1;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
z-index: 2;
}

.news-date .day {
display: block;
font-size: 1.2rem;
font-weight: 800;
}

.news-date .month {
display: block;
font-size: 0.75rem;
text-transform: uppercase;
margin-top: 3px;
}

/* Testo News */
.news-content {
padding: 25px;
flex: 1;
display: flex;
flex-direction: column;
}

.news-content h3 {
font-size: 1.2rem;
color: var(--secondary-color);
margin-bottom: 10px;
line-height: 1.4;
}

.news-content p {
font-size: 0.95rem;
color: #666;
margin-bottom: 20px;
flex-grow: 1; /* Spinge il link in basso */
}

.news-link {
font-weight: 700;
color: var(--primary-color);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
display: inline-flex;
align-items: center;
gap: 5px;
transition: gap 0.2s;
}

.news-link:hover {
color: var(--accent-color);
gap: 10px; /* Freccina che si muove */
}


/* ===== TRAVEL CARDS (PER VENUE PAGE) ===== */
.travel-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 30px;
margin-bottom: 50px;
margin-top: 30px;
}

.travel-card {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
border-top: 4px solid var(--primary-color);
transition: transform 0.3s ease;
}

.travel-card:hover {
transform: translateY(-5px);
}

.travel-icon {
font-size: 2.5rem;
color: var(--accent-color);
margin-bottom: 20px;
}

.travel-card h3 {
color: var(--secondary-color);
margin-top: 0;
font-size: 1.3rem;
font-family: 'Montserrat', sans-serif;
margin-bottom: 15px;
}

.info-list {
list-style: none;
padding: 0;
margin: 0;
}

.info-list li {
margin-bottom: 12px;
font-size: 0.9rem;
color: #555;
padding-left: 20px;
position: relative;
line-height: 1.5;
}

.info-list li::before {
content: '\f054';
font-family: 'Font Awesome 6 Free';
font-weight: 900;
position: absolute;
left: 0;
top: 4px;
font-size: 0.7rem;
color: var(--accent-color);
}

.info-list strong {
color: var(--primary-color);
}

/* Stile per il link esterno degli orari */
.schedule-link {
color: var(--accent-color);
font-weight: 700;
text-decoration: none;
border-bottom: 1px dotted var(--accent-color);
transition: color 0.2s;
}
.schedule-link:hover {
color: #d66a1a;
border-bottom: 1px solid #d66a1a;
}

.venue-facilities {
margin-top: 20px;
background: #f9fcff;
padding: 20px;
border-radius: 8px;
border-left: 3px solid var(--accent-color);
}

.venue-facilities h5 {
margin: 0 0 10px 0;
color: var(--secondary-color);
font-size: 1rem;
}

/* ===== PAGINA REGISTRATION ===== */

/* CTA Buttons */
.cta-button {
display: inline-block;
background-color: var(--accent-color); /* #E87722 */
color: white;
padding: 12px 30px;
border-radius: 5px;
text-decoration: none;
font-weight: 700;
font-family: 'Montserrat', sans-serif;
margin-top: 15px;
transition: background 0.3s;
}
.cta-button:hover {
background-color: #c45d12;
}
.cta-button.secondary {
background-color: var(--primary-color); /* #00629B */
}
.cta-button.secondary:hover {
background-color: #004b75;
}

/* Pricing Table */
.pricing-table {
width: 100%;
border-collapse: collapse;
margin: 30px 0;
font-family: 'Open Sans', sans-serif;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.pricing-table thead {
background-color: var(--secondary-color); /* #002855 */
color: white;
}
.pricing-table th, .pricing-table td {
padding: 15px;
text-align: left;
border-bottom: 1px solid #eee;
}
.pricing-table th {
font-family: 'Montserrat', sans-serif;
font-weight: 600;
text-transform: uppercase;
font-size: 0.9rem;
}

/* Hover solo sul tbody */
.pricing-table tbody tr:hover {
background-color: #f9f9f9;
}

.price-tag {
font-weight: 700;
color: var(--primary-color); /* #00629B */
}

/* Guidelines List */
.guidelines-list {
list-style: none;
padding: 0;
}
.guidelines-list li {
position: relative;
padding-left: 25px;
margin-bottom: 10px;
line-height: 1.6;
}
.guidelines-list li::before {
content: "\f00c"; /* FontAwesome Check */
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
left: 0;
color: #2ecc71;
}

/* ===== THEME & TRACKS PAGE ===== */

/* Box introduttivo del Tema */
.theme-box {
background: white;
border-left: 5px solid var(--primary-color);
padding: 30px;
margin-bottom: 50px;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
border-radius: 0 10px 10px 0;
}

/* Container per la lista dei Tracks */
.tracks-container {
display: flex;
flex-direction: column;
gap: 20px;
}

/* Card del Track (Accordion) */
.track-card {
background: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
overflow: hidden;
transition: all 0.3s ease;
}

.track-card:hover {
box-shadow: 0 10px 25px rgba(0,0,0,0.08);
border-color: var(--primary-color);
transform: translateY(-2px);
}

/* Testata cliccabile del Track */
.track-header {
padding: 20px 25px;
background: #fff;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
user-select: none;
}

.track-title {
font-family: 'Montserrat', sans-serif;
font-weight: 700;
color: var(--secondary-color);
font-size: 1.1rem;
margin: 0;
}

.track-number {
color: var(--accent-color);
font-weight: 800;
margin-right: 10px;
text-transform: uppercase;
font-size: 0.9rem;
}

.track-icon {
color: #ccc;
transition: transform 0.3s ease;
}

/* Corpo del Track (Nascosto di default) */
.track-body {
padding: 0 25px 25px 25px;
color: #555;
font-size: 0.95rem;
line-height: 1.6;
display: none;
border-top: 1px solid #f0f0f0;
margin-top: -5px;
padding-top: 20px;
}

/* STATO ATTIVO (quando aperto) */
.track-card.active {
border-left: 5px solid var(--accent-color);
}
.track-card.active .track-body {
display: block;
animation: fadeIn 0.4s ease;
}
.track-card.active .track-icon {
transform: rotate(180deg);
color: var(--primary-color);
}

/* Lista dei Topics */
.topic-list {
list-style: none;
padding: 0;
margin-top: 15px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 10px;
}
.topic-list li {
position: relative;
padding-left: 20px;
}
.topic-list li::before {
content: "•";
color: var(--accent-color);
font-weight: bold;
position: absolute;
left: 0;
}

/* Box dei Chair */
.track-chairs {
background-color: #f4f8fb;
padding: 15px;
border-radius: 6px;
margin: 15px 0;
border-left: 4px solid var(--primary-color);
font-size: 0.9rem;
}

.chair-row {
margin-bottom: 8px;
display: flex;
align-items: baseline;
gap: 8px;
flex-wrap: wrap;
}
.chair-row:last-child { margin-bottom: 0; }

.chair-label {
color: var(--secondary-color);
font-weight: 700;
text-transform: uppercase;
font-size: 0.8rem;
min-width: 110px;
}

.chair-name { color: #333; font-weight: 600; }
.chair-aff { color: #666; font-style: italic; font-weight: 400; }

/* ===== RESPONSIVE ===== */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
/* Timeline Mobile */
.timeline::after { left: 31px; }
.timeline-container { width: 100%; padding-left: 70px; padding-right: 25px; }
.timeline-container.left, .timeline-container.right { left: 0; }
.timeline-container::after { left: 21px; }

/* Menu Mobile & Dropdown */
.menu-toggle { display: block; margin-bottom: 0; }

.nav-menu {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
position: absolute;
top: 100%; 
left: 0;
background: white;
padding: 20px 0;
border-top: 1px solid #eee;
opacity: 0;
transform: translateY(-20px);
pointer-events: none; 
transition: all 0.3s ease-in-out;
z-index: 999;
box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.nav-menu.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-menu > a { margin: 15px 0; width: 100%; text-align: center; margin-left: 0; }
.nav-btn { margin-left: 0; }

.sticky-header {
align-items: center; 
padding: 10px 20px;
}
.logo { height: 35px; } /*{ height: 50px; }*/

.header-left .logos-row {
        display: flex;
        flex-wrap: wrap; 
        justify-content: flex-start; 

        /* MODIFICA QUI: Separiamo i due tipi di spazi */
        row-gap: 10px;      /* Spazio verticale (tra riga 1 e riga 2) */
        column-gap: 30px;   /* <--- AUMENTATO: Spazio orizzontale tra 2° e 3° logo */
    }

    /* Il primo logo occupa sempre il 100% per stare su una riga da solo */
    .header-left .logos-row a:first-child {
        width: 100%; 
        display: flex;
        justify-content: flex-start;
        /* Rimuovo il margin-bottom perché ora usiamo row-gap */
        margin-bottom: 0; 
    }

    .header-left .logos-row img {
        height: 50px; 
    }

.hero h1 { font-size: 2rem; }
.hero-content { padding: 0 15px; }
.about-grid, .topic-grid, .footer-container { grid-template-columns: 1fr; flex-direction: column; }
.sponsor-grid { gap: 30px; }

/* Fix per la tabella prezzi su mobile */
.pricing-table {
display: block;
overflow-x: auto;
}

/* Programma */
.schedule-item {
flex-direction: column;
}
.schedule-item .time {
margin-bottom: 10px;
width: 100%;
border-bottom: 1px dashed #eee;
padding-bottom: 5px;
}
.day-subtitle {
margin-top: 10px;
}

/* DROPDOWN MOBILE */
.dropdown {
display: block;
width: 100%;
margin: 0;
}

.dropdown .dropbtn {
margin: 15px 0 5px 0;
display: block;
color: var(--primary-color);
border-bottom: none;
text-align: center;
margin-left: 0;
}

.dropdown-content {
display: block;     /* Sempre visibile su mobile */
position: static;   /* Non flottante */
box-shadow: none;
border-top: none;
padding: 0;
width: 100%;
background: transparent;
}

.dropdown-content a {
padding: 8px 0 8px 0;
font-size: 0.9rem;
color: #666;
border-bottom: 1px solid #eee;
text-align: center;
}

.dropdown .dropbtn i { display: none; }
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
display: none; 
position: fixed; 
bottom: 0; 
left: 0; 
width: 100%; 
background: rgba(0, 0, 0, 0.9); 
color: white; 
padding: 20px; 
box-shadow: 0 -2px 10px rgba(0,0,0,0.3); 
z-index: 10000; 
font-family: 'Open Sans', sans-serif;
box-sizing: border-box;
}

#cookie-banner .content-wrapper {
max-width: 1200px; 
margin: 0 auto; 
display: flex; 
flex-wrap: wrap; 
align-items: center; 
justify-content: space-between; 
gap: 20px;
}

#cookie-banner .text {
flex: 1; 
min-width: 250px; 
font-size: 14px; 
line-height: 1.5;
}

#cookie-banner .actions {
display: flex; 
gap: 10px;
}

#cookie-banner .btn-accept {
background: #00629B; 
color: white; 
border: none; 
padding: 10px 25px; 
border-radius: 5px; 
cursor: pointer; 
font-weight: 700;
font-size: 14px;
transition: background 0.2s;
}

#cookie-banner .btn-close {
background: transparent; 
border: 1px solid #999; 
color: #ccc; 
padding: 10px 20px; 
border-radius: 5px; 
cursor: pointer; 
font-size: 14px;
}

/* DEADLNES IN CALL 4 PAPER */
.deadlines-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 30px;
margin-top: 40px;
}
.deadline-card {
background: white;
padding: 30px 20px;
text-align: center;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
border-top: 4px solid #00629B; /* Colore primario IEEE */
transition: transform 0.3s ease;
}
.deadline-card:hover {
transform: translateY(-5px);
}
.deadline-icon {
font-size: 2.5rem;
color: #E87722; /* Colore secondario */
margin-bottom: 15px;
}
.deadline-date {
font-family: 'Montserrat', sans-serif;
font-weight: 700;
font-size: 1.2rem;
color: #333;
margin-bottom: 5px;
}
.deadline-year {
font-size: 0.9rem;
color: #666;
margin-bottom: 15px;
}
.deadline-label {
font-weight: 600;
color: #00629B;
line-height: 1.4;
}

/* ---- PAGINA REGISTRATION ----*/
.alert-box {
background-color: #f0f8ff;
border-left: 5px solid #00629B;
padding: 20px;
margin-bottom: 30px;
border-radius: 4px;
}
.inclusion-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 20px;
}
.inclusion-card {
background: #fff;
border: 1px solid #eee;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.inclusion-card h4 {
color: #00629B;
margin-top: 0;
border-bottom: 2px solid #E87722;
padding-bottom: 10px;
display: inline-block;
}
.sponsor-card {
background: #333;
color: #fff;
padding: 20px;
border-radius: 8px;
text-align: center;
margin-bottom: 20px;
}
.sponsor-card.gold { background: linear-gradient(135deg, #d4af37, #aa8e2c); }
.sponsor-card.silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6); }
.sponsor-card.bronze { background: linear-gradient(135deg, #cd7f32, #a05a2c); }

/* ---- DROPDOWN MENU NAV ----*/

/* Contenitore del dropdown */
.dropdown {
position: relative;
display: inline-block;
}

/* Stile del link/bottone principale del dropdown (simile agli altri link della nav) */
.dropbtn {
background-color: transparent;
color: #333; /* Assicurati che corrisponda al colore del testo della tua nav */
padding: 10px 15px;
font-size: 1rem;
font-weight: 600;
border: none;
cursor: pointer;
font-family: 'Montserrat', sans-serif;
transition: color 0.3s;
}

/* Icona freccina accanto al testo */
.dropbtn i {
margin-left: 5px;
font-size: 0.8em;
}

/* Effetto hover sul bottone principale */
.nav-menu a:hover, 
.dropdown:hover .dropbtn {
color: #00629B; /* Colore IEEE Blue */
}

/* Il contenuto del menu a tendina (nascosto di default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #ffffff;
min-width: 220px;
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
z-index: 1000;
top: 100%;
left: 0;
border-top: 4px solid #00629B; /* Bordo colorato in alto */
border-radius: 0 0 4px 4px;
}

/* Link all'interno del dropdown */
.dropdown-content a {
color: #333;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
font-size: 0.95rem;
border-bottom: 1px solid #f1f1f1;
transition: background 0.2s;
}

/* Rimuovi padding laterale eccessivo ereditato dalla nav generale se presente */
.nav-menu .dropdown-content a {
margin: 0;
}

/* Hover sui link interni */
.dropdown-content a:hover {
background-color: #f4f8fb; /* Colore sfondo chiaro */
color: #00629B;
padding-left: 20px; /* Piccolo effetto scorrimento */
}

/* Mostra il menu al passaggio del mouse (Desktop) */
.dropdown:hover .dropdown-content {
display: block;
}

/* --- ADATTAMENTO MOBILE --- */
@media (max-width: 768px) {
.dropdown {
display: block;
width: 100%;
text-align: center; /* O left a seconda del tuo stile mobile */
}

.dropbtn {
width: 100%;
text-align: center; /* O left */
padding: 15px; /* Più spazio per il dito */
}

.dropdown-content {
position: static; /* Non più flottante, ma impilato */
box-shadow: none;
border-top: none;
border-left: 4px solid #00629B; /* Bordo laterale per distinguere la sottosezione */
background-color: #f9f9f9;
width: 100%;
}

/* Su mobile mostriamo il contenuto sempre o solo al click (qui lo mostriamo al focus/hover per semplicità CSS) */
.dropdown:hover .dropdown-content {
display: block;
}
}

/* ---- Firm-student PAGE ---- */

/* Timeline / Agenda Style */
.agenda-item {
    background: white;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0;
    transition: transform 0.2s;
}
.agenda-item:hover {
    transform: translateX(5px);
}
.time-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* Companies Grid Style */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.company-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.company-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-color);
}

/* STILE IMMAGINI LOGO AGGIORNATO */
.company-logo-box {
    height: 80px; /* Altezza fissa per allineamento */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Centra il logo */
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    background: #fff;
}

.company-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Mantiene le proporzioni senza tagliare */
}

.workshop-box {
    background: linear-gradient(135deg, #f9f9f9 0%, #eef6fb 100%);
    border: 1px solid #e1e1e1;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.safe-email::after {
    /* "info" + "@" (in hex) + "icai-tems.eu" */
    content: "info" "\40" "icai-tems.eu"; 
    /* Opzionale: cursor pointer per far capire che è cliccabile */
    cursor: pointer; 
}