/* Definiamo il font Roboto Regular */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Definiamo il font Roboto Bold (per i titoli) */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body{
    margin:0;
    font-family:'Roboto';
}

h1, h2, h3 {
    font-weight: bold;
}

.topbar {
    background: #f8f8f8;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between; /* Mette lingue a sinistra e contatti a destra */
    align-items: center;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.lingue a {
    margin-right: 10px;
}

.lingue img {
    height: 12px; /* Piccole e discrete */
    width: auto;
    vertical-align: middle;
}

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px;
    background:white;
}

.logo{
    font-size:28px;
    font-weight:bold;
}

nav a{
    margin-left:25px;
    text-decoration:none;
    color:#333;
}

/*Per gestire le barre degli swiper*/
.swiper{
    width:100%;
    height:450px;
}

.swiper img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/*Per gestire la barra dello slogan*/
.slogan{
    background:#444;
    color:white;
    text-align:center;
    padding:30px;
    font-size:20px;
}

/*Per gestire i 3 cosi "progettazione", "produzione" e "supporto"*/
.servizi {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.servizio-box {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: left;
}

.servizio-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.servizio-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/*Per gestire il footer nell'index*/
footer{
    background:#222;
    color:white;
    text-align:center;
    padding:20px;
}

/*Per gestire le immagini in chi_siamo*/
.network, .map {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.network {
    margin-top: 40px;
}

.map {
    margin-bottom: 40px;
}

/*Per gestire il testo in chi siamo e connettori*/
.testo_presentazione {
    padding: 30px 20px;
    background-color: #fff;
}

.testo_presentazione div {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.testo_presentazione h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0056b3;
    margin-top: 15px;
    margin-bottom: 25px;
}

.testo_presentazione p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.testo_presentazione ul {
    display: block;
    text-align: left;
    margin-top: 20px;
    padding-left: 20px;
    list-style-position: outside;
}

.testo_presentazione li {
    margin-bottom: 10px;
    font-size: 18px;
    color: #555;
}

/*Pagina cablaggi*/
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.cablaggi {
    width: 80%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Box che contiene la mappa */
.mappa-box {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px; /* Angoli arrotondati */
    overflow: hidden;    /* Necessario per far vedere gli angoli tondi dell'iframe */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.mappa-box iframe {
    display: block;
    width: 100% !important;
    height: 450px;
}

.testo_presentazione a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}

.testo_presentazione_contatti h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0056b3;
    margin: 15px auto 25px auto;
}

/*logo*/
.logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: 0.3s;
}

.logo img:hover {
    opacity: 0.8;
}

.mail_header {
    color: black;
}