/* Stile Generale */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 20px;
    position: relative;
}

.logo-container {
    position: relative;
}

.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px;
    height: auto;
}

.theme-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: auto;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
}

#theme-selector {
    margin-bottom: 20px;
}

main {
    text-align: center;
    margin: 50px 0;
}

#countdown {
    font-size: 2em;
}

/* Sezione Notizie */
#news {
    margin: 50px auto;
    max-width: 800px;
    text-align: left;
}

#news h2 {
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.news-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    margin-top: 0;
}

.news-item p {
    margin: 0;
}

/* Contenitore per il selettore del tema */
#theme-selector-container {
    display: inline-block;
    margin: 0 auto; /* Centra l'elemento orizzontalmente */
    padding: 10px 0; /* Rimuovi padding laterale */
    font-family: inherit; /* Inherit dal tema */
}

/* Stile base per il selettore */
#themes {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 10px 15px;
    font-size: 16px;
    font-family: inherit;
    border-radius: 5px;
    border: 2px solid #ccc;
    background-color: #f4f4f4;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    margin: 0; /* Rimuovi margini */
}

/* Aggiungi una freccia personalizzata */
#theme-selector-container::after {
    content: '▼';
    font-size: 12px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #333;
}

/* Effetto Hover e Focus */
#themes:hover,
#themes:focus {
    border-color: #00796b;
    background-color: #e9ecef;
    outline: none;
}

/* Tema Default (Enrico Fermi) */
.theme-default {
    background-color: #e0e0e0;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

.theme-default header {
    background-color: #00796b;
    color: #ffffff;
}

.theme-default nav a {
    color: #ffffff;
}

.theme-default .news-item {
    background-color: #ffffff;
    color: #333;
}

.theme-default #themes {
    border-color: #00796b;
    background-color: #e0e0e0;
    color: #333;
}

/* Tema Silvio Berlusconi */
.theme-berlusconi {
    background-color: #f0e5d8; /* Colore neutro per lo sfondo */
    color: #333333; /* Colore del testo */
    font-family: 'Montserrat', sans-serif; /* Font elegante */
}

.theme-berlusconi .logo {
    width: 80px;
}

.theme-berlusconi .theme-image {
    width: 120px;
}

.theme-berlusconi #themes {
    border-color: #d4af37;
    background-color: #f0e5d8;
    color: #333;
}

/* Tema Minimalista BW */
.theme-minimal {
    background-color: #f0f0f0;
    color: #000;
    font-family: 'Varela', sans-serif;
}

.theme-minimal header {
    background-color: #000;
    color: #fff;
}

.theme-minimal nav a {
    color: #b0b0b0;
}

.theme-minimal .news-item {
    background-color: #e6e6e6;
}

.theme-minimal #themes {
    border-color: #000;
    background-color: #f0f0f0;
    color: #000;
}


/* Tema Dislessia */
.theme-dislessia {
    background-color: #4f5052;
    color: #fcfdff;
    font-family: 'Andika', sans-serif;
}

.theme-dislessia header {
    background-color: #141d30;
    color: #fff;
}

.theme-dislessia nav a {
    color: #fcfdff;
}

.theme-dislessia .news-item {
    background-color: #3c5791;
}

.theme-dislessia #themes {
    border-color: #cc0000;
    background-color: #3c5791;
    color: #141d30;
}

.theme-dislessia #idea-list li{
	background-color: #141d30;
}

.theme-dislessia .member-card {
    background-color: #fcfdff;
	color: #141d30;
}

.theme-dislessia .categoria-DSA{
	color: #002f91;
}

/* Tema Cristiano Ronaldo "Siuuu" */
.theme-cr7 {
    background-color: #ffffff;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.theme-cr7 header {
    background-color: #007700;
    color: #fff;
}

.theme-cr7 nav a {
    color: #000;
}

.theme-cr7 .news-item {
    background-color: #e0ffe0;
}

.theme-cr7 #themes {
    border-color: #007700;
    background-color: #ffffff;
    color: #333;
}

/* Aggiungi un effetto Hover per ogni tema */
#themes:hover,
#themes:focus {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: darken(#00796b, 10%);
    color: darken(#333, 10%);
}


#idea-proposal {
    text-align: center;
    margin-bottom: 30px;
}

#submit-idea {
    background-color: #00796b;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
}

#submit-idea:hover {
    background-color: #004d40;
}

#idea-list ol {
    margin: 0 auto;
    padding: 0;
    max-width: 800px;
    list-style-position: inside;
    counter-reset: idea-counter;
}

#idea-list li {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Elemento nascosto inizialmente */
    transform: translateX(100px); /* Posizione iniziale fuori dalla vista per la direzione da destra */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Animazione fluida */
}

#idea-list li.left {
    transform: translateX(-100px); /* Entrata da sinistra */
}

#idea-list li.show {
    opacity: 1; /* L'elemento diventa visibile */
    transform: translateX(0); /* Torna alla posizione originale */
}



#idea-list li:before {
    font-size: 2em; /* Dimensione del testo */
    font-weight: bold;
    margin-right: 10px;
    color: #333;
    text-transform: uppercase; /* Testo in maiuscolo */
}

#instagram-section {
    text-align: center;
    margin-bottom: 50px;
}

.instagram-logo {
    width: 100px;
    margin-bottom: 20px;
}

#latest-post iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#newsletter-section {
    text-align: center;
    margin-bottom: 50px;
}

#newsletter-form {
    display: inline-block;
    text-align: left;
    max-width: 400px;
    width: 100%;
}

#newsletter-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#newsletter-form input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#newsletter-form button {
    background-color: #00796b;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}

#newsletter-form button:hover {
    background-color: #004d40;
}

#team-section {
    text-align: center;
    margin-bottom: 50px;
}

#team-section ul {
    list-style: none;
    padding: 0;
}

#team-section li {
    margin-bottom: 10px;
}

#team-section a {
    text-decoration: none;
    color: #00796b;
    font-weight: bold;
}

#team-section a:hover {
    color: #004d40;
}


#team-section {
    text-align: center;
    margin-bottom: 50px;
}

.member-card {
    display: inline-block;
    width: 300px;
    margin: 20px;
    padding: 20px;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.member-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.member-card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.member-card table {
    width: 100%;
    margin-bottom: 15px;
    border-spacing: 0;
    border-collapse: collapse;
}

.member-card th {
    text-align: left;
    padding-right: 10px;
    vertical-align: top;
    font-weight: bold;
}

.member-card td {
    padding-bottom: 10px;
    text-align: right;
}

.member-card p {
    font-size: 0.9em;
    line-height: 1.5;
}

/* Stile squircle per il link della pagina attiva */
nav a {
    text-decoration: none;
    color: #00796b;
    padding: 10px 20px;
    border-radius: 25px; /* Rettangolo molto arrotondato */
    transition: background-color 0.3s, color 0.3s;
}

nav a.active {
    background-color: #00796b;
    color: #ffffff;
}

nav a:hover {
    background-color: #004d40;
    color: #ffffff;
}

/* Aggiustamenti specifici per il tema */
.member-card {
    border: 2px solid #d4af37; /* Bordo dorato per il tema Berlusconi */
    background-color: #ffffff;
}

/* Media query per schermi con larghezza massima di 600px */
@media (max-width: 600px) {
  header: {
    padding: 10px;
    display: flex;
    flex-direction: column;
  }

  h1{
	 padding-left: 5px;
	 padding-right: 5px;
  }
  
   h2{
	 padding-left: 5px;
	 padding-right: 5px;
  }
  
  .logo {
    width: 40px;
	height: auto;
	align-items: left;
  }
  
  .theme-image {
    width: 40px;
	height: auto;
	align-items: right;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav a {
    margin: 5px 0;
    font-size: 14px;
  }
  
  .special-padding {
    padding-top: 40px;
  }

  main {
    margin: 20px 0;
  }

  #countdown {
    font-size: 1.5em;
  }

  #news {
    margin: 20px auto;
    max-width: 100%;
	padding-left: 5px;
	padding-right: 5px;
  }

  .news-item {
    padding: 10px;
	padding-left: 5px;
	padding-right: 5px;
  }

  #theme-selector-container {
    padding: 5px 0;
  }

  #themes {
    padding: 5px 10px;
    font-size: 14px;
  }

  #idea-proposal {
    margin-bottom: 20px;
  }

  #submit-idea {
    padding: 5px 10px;
    font-size: 1em;
  }

  #idea-list ol {
    max-width: 100%;
  }

  #idea-list li {
    padding: 10px;
	padding-left: 5px;
	padding-right: 5px;
  }

  .member-card {
    width: 90%;
    margin: 10px 0;
    padding: 10px;
  }

  .member-card img {
    width: 100%;
  }

  .member-card h3 {
    font-size: 1.2em;
  }

  .member-card table {
    font-size: 0.9em;
  }

  .member-card p {
    font-size: 0.8em;
  }
  
  .theme-berlusconi .logo {
    width: 50px;
	}

  .theme-berlusconi .theme-image {
		width: 80px;
	}
}

