/* Import manuale del font */
@font-face { 
  font-family: 'SuperCharge';
  src: url('./fonts/supercharge.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Reset del CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Rimozione della sottolineatura quando viene visualizzato un testo con un collegamento */
a {
text-decoration: none;
color: #333;
}

/* Stile generale della pagina */
body { 
font-family: 'Supercharge', sans-serif;
background-color: #f8f8f8;
color: #333;
line-height: 1.6;
}

/* Stile per gli elementi della barra in alto */
header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #111;
padding: 10px 50px;
height: 80px;
box-sizing: border-box;
}

header a {
  color: #fff;
}

/* Menù */
nav ul {
list-style: none;
display: flex;
gap: 20px;
padding: 0;
margin: 0;
}

nav ul li {
position: relative;
}

/* Introduzione */
.hero {
background-image: url('./img/index/background.avif');
background-size: cover;
background-position: center;
color: #fff;
padding: 100px 50px;
text-align: center;
}

/* Storia dell'Informatica */
.history {
background-color: #fff;
padding: 50px 20px;
text-align: center;
}

.history h2 {
font-size: 2.5em;
margin-bottom: 20px;
}

.history p {
font-size: 1.1em;
margin-bottom: 40px;
color: #666;
}

.timeline {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}

.timeline-item {
background-color: #f1f1f1;
padding: 20px;
border-radius: 10px;
width: 250px;
margin-bottom: 30px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
transform: scale(1.1);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.timeline-item h3 {
font-size: 1.8em;
margin-bottom: 10px;
}

.timeline-item p {
font-size: 1em;
}

/* Layout per le tecnologie */
.gridtitle {
text-align: center; 
margin-top: 50px;
margin-bottom: 20px;
}

.gridtitle h2 {
font-size: 2.5em;
color: #333;
}

.gridtitle p {
font-size: 1.2em;
color: #666;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
padding: 20px;
}

.card {
display: flex;
background-color: #1c1c1e;
border-radius: 10px;
overflow: hidden;
transition: transform 0.3s ease;
}

.card:hover {
transform: scale(1.05);
}

.card img {
width: 450px;
height: 450px;
display: block;
}

.card h2 {
padding: 15px;
font-size: 1.5rem;
color: #f1f1f1;
text-align: center;
}

/* Footer */
footer {
background-color: #111;
color: #fff;
text-align: center;
position: relative;
padding: 20px;
width: 100%;
bottom: 0;
}
