/*
 * Stile principale per il sito di Ecosider
 *
 * Il tema cromatico riprende le tonalità del metallo: blu intensi,
 * grigi e accenti chiari. Il design è moderno e pulito per dare una
 * sensazione di professionalità e innovazione. Utilizziamo la
 * famiglia di font Roboto per una buona leggibilità.
 */

/* Variabili CSS per gestire facilmente la palette di colori e gli spazi */
:root {
  --primary-color: #005f91;       /* blu principale per elementi attivi */
  --secondary-color: #0a283e;     /* blu molto scuro per lo sfondo */
  --accent-color: #00a8e8;        /* azzurro chiaro per evidenziazioni */
  --light-color: #f5f7fa;         /* colore chiaro per le sezioni */
  --text-color: #333333;          /* colore principale del testo */
  --text-light: #ffffff;          /* testo chiaro per sfondi scuri */
  --max-width: 1200px;            /* larghezza massima del contenuto */
  --header-height: 70px;          /* altezza dell'header */
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
header {
  background-color: var(--secondary-color);
  color: var(--text-light);
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

header .logo {
  /* Ingrandiamo il logo per dare più risalto al nome dell’azienda */
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

nav li a {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Sezione hero con slider */
#hero {
  margin-top: var(--header-height);
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.slider {
  height: 100%;
  width: 100%;
  position: relative;
}

.slide {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.slide-content {
  position: absolute;
  bottom: 20%;
  left: 5%;
  color: var(--text-light);
  max-width: 60%;
}

.slide-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.slide-content p {
  font-size: 1.2rem;
  line-height: 1.3;
}

/* Sezione di introduzione */
.intro {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.intro p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

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

.btn.secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Sezioni generiche */
main {
  padding-top: var(--header-height);
}

.section {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 2rem;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* Card che evidenzia prospettive future nel mercato del rottame.
   È posizionata nella pagina del mercato e mette in risalto
   informazioni chiave sul futuro del settore. */
.prospects-card {
  background-color: var(--light-color);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.prospects-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.prospects-card ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.prospects-card ul li {
  margin-bottom: 0.5rem;
}

.section p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
}

.team-card .avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

.team-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Tabelle e grafici */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-color);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 2rem;
}

footer .footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer .footer-col {
  flex: 1 1 250px;
}

footer h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--accent-color);
}

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

footer li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

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

/* ================================ */
/* Sezione "I nostri materiali"    */
/* Questa sezione sulla homepage mette in evidenza i tre metalli principali
   trattati da Ecosider (ferro, ottone, rame) con immagini, descrizioni e link. */
.materials {
  background-color: var(--light-color);
  padding: 3rem 2rem;
}

.materials h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.material-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.material-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.material-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.material-card h3 {
  font-size: 1.4rem;
  margin: 0.5rem 0;
  color: var(--secondary-color);
}

.material-card p {
  padding: 0 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.material-card a {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  border: 2px solid var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.material-card a:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 2rem;
  }
  .slide-content p {
    font-size: 1rem;
  }
  header nav ul {
    gap: 0.8rem;
  }
  .intro h2 {
    font-size: 1.6rem;
  }
  .intro p {
    font-size: 1rem;
  }
}