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

/* ELEMENTI BASE */
ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #ff6229;
}

a:hover {
    color: #343c5c;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    color: #7b8095;
    font-size: 16px;
    font-weight: normal;
    text-transform: none;
    line-height: 27px;
}

h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 45px;
    color: #ff6229;
}

h2 {
    font-weight: 600;
}

/* HEADER */
#header {
    width: 84%;
    padding: 5px 8%;
    position: fixed;
    background: #fff;
    z-index: 100;
}

#header img {
    width: 230px;
    vertical-align: middle;
    float: left;
    margin-right: 80px;
}

#header li {
    display: inline-block;
    margin-top: 20px;
}

#header ul a {
    padding: 10px;
    color: #c0c0c0;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0.1px;
}

#header ul a:hover {
    color: #808080;
    border-bottom: 3px solid #804000;
}

#header li:first-child a:hover {
    border-bottom: none;
}

#header li ul {
    display: none;
}

#header ul li ul {
    visibility: hidden;
    z-index: 2;
    opacity: 0;
    position: absolute;
    transition: all 0.5s ease;
    margin-top: 10px;
    display: none;
    background: #804000;
    padding: 0px;
    width: 18%;
}

#header ul li:hover > ul,
#header ul li ul:hover {
    visibility: visible;
    opacity: 1;
    display: block;
}

#header ul li ul li {
    clear: both;
    width: 100%;
    padding: 5px 0px;
}

#header ul li ul li:hover {
    background: #808080;
}

#header ul li ul li a {
    color: #fff;
}

#header ul li ul li a:hover {
    border-bottom: none;
    color: #fff;
}

#header .menumobile {
    display: none;
}

/* SLIDE */
#slide {
    padding-top: 83px;
}

#slide img {
    animation: pulse 2s;
    animation-timing-function: ease-in;
}

@keyframes pulse {
    0% { opacity: 30%; }
    100% { opacity: 100%; }
}

/* ABOUT */
#about {
    padding: 50px 20%;
    overflow: auto;
    clear: both;
}

#about h1 {
    color: #ff6229;
    margin-bottom: 15px;
}

#about p {
    margin-bottom: 15px;
    line-height: 28px;
}

#about a {
    background: #ff6229;
    color: #fff;
    padding: 15px 35px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0px 4px 12px 0px rgba(52,60,92,0.3);
    font-weight: bold;
    line-height: 18px;
}

#about a:hover {
    background: #343c5c;
}

#about img {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    width: 420px;
}

/* ==========================================================================
   SERVIZI (HOME PAGE DESKTOP - 3 COLONNE)
   ========================================================================== */
#servizi {
    padding: 60px 8%;
    clear: both;
    background: url("https://www.telcosrl.com/images/background-lavori.png");
    background-repeat: no-repeat;
    background-size: cover;
}

#servizi h1 {
    font-size: 38px;
    line-height: 45px;
    color: #343c5c;
    display: block;
    width: 100%;
}

#servizi hr {
    width: 100px;
    border: 0;
    height: 3px;
    background: #ff6229;
    margin: 10px 0 15px 0;
    display: block;
}

#servizi h2 {
    font-size: 20px;
    color: #7b8095;
    font-weight: 400;
    margin-bottom: 35px;
    display: block;
    width: 100%;
}

/* Contenitore Griglia: supporta sia .servizi-grid che .servizi-container */
.servizi-grid,
.servizi-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
    clear: both;
}

/* Card Servizio */
.servizio {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 30px 25px 25px 25px;
    background-color: #ffffff;
    box-shadow: 2px 8px 15px rgba(92, 104, 152, 0.08);
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.servizio:hover {
    transform: translateY(-3px);
    box-shadow: 2px 12px 20px rgba(92, 104, 152, 0.14);
}

.circle {
    background: #fff5f1;
    border-radius: 50%;
    width: 38px;
    height: 38px;
}

.servizio i {
    color: #ff6229;
    font-size: 28px;
    position: relative;
    top: -24px;
    left: 14px;
}

#servizi .servizio h1 {
    font-size: 20px;
    line-height: 26px;
    color: #343c5c;
    min-height: 52px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.servizio .description {
    font-size: 14px;
    line-height: 22px;
    color: #7b8095;
    flex-grow: 1;
    margin-bottom: 20px;
}

.link-service {
    text-align: center;
    margin-top: auto;
}

.link-service a {
    background: #ff6229;
    color: #fff;
    padding: 10px 22px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
}

.link-service a:hover {
    background: #343c5c;
}

/* CLIENTI */
#clienti {
    padding: 40px 5% 60px;
    color: #fff;
    text-align: center;
    clear: both;
}

#clienti hr {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    border-top-width: 4px;
    border-top-style: solid;
    border-color: #f2ebe6;
    border-left: 0px;
}

#clienti h1 {
    color: #343c5c;
    margin-bottom: 30px;
}

#clienti h3 {
    color: #ff6229;
    font-size: 18px;
    margin-bottom: 5px;
}

#clienti img {
    height: 55px;
    margin: 10px 25px;
    filter: grayscale(100%);
    cursor: pointer;
    transition: filter 0.2s ease;
}

#clienti img:hover {
    filter: grayscale(0%);
}

/* CONTENUTO GENERALE / CHI SIAMO */
#content {
    padding: 110px 10% 50px;
    overflow: auto;
    clear: both;
}

#content h2 {
    margin: 15px 0px;
}

#content ul.list-style {
    list-style: circle;
    margin-left: 30px;
}

#content li {
    margin: 8px 0px;
}

/* Sezioni Chi Siamo Desktop */
.about-hero {
    margin-bottom: 45px;
}

.about-hero h2 {
    color: #343c5c;
    font-size: 22px;
    margin-bottom: 18px;
}

.about-hero p {
    margin-bottom: 14px;
    line-height: 28px;
}

.values-section {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin: 40px 0 50px 0;
}

.value-card {
    flex: 1;
    background: #fdfbf9;
    border: 1px solid #f2ebe6;
    border-top: 4px solid #ff6229;
    padding: 25px 22px;
    border-radius: 6px;
}

.value-card i {
    font-size: 30px;
    color: #ff6229;
    margin-bottom: 14px;
}

.value-card h3 {
    color: #343c5c;
    font-size: 18px;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    line-height: 22px;
}

.settori-section {
    margin: 50px 0;
}

.settori-section h2 {
    color: #343c5c;
    font-size: 24px;
}

.settori-grid-detailed {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.settore-detail-box {
    background: #ffffff;
    border: 1px solid #e7ecf2;
    border-left: 5px solid #ff6229;
    padding: 24px 28px;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(52, 60, 92, 0.05);
}

.settore-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.settore-header i {
    font-size: 26px;
    color: #ff6229;
    margin-right: 15px;
    width: 32px;
    text-align: center;
}

.settore-header h3 {
    color: #343c5c;
    font-size: 19px;
}

.settore-detail-box p {
    font-size: 15px;
    line-height: 25px;
    color: #63687e;
    margin-left: 47px;
}

.workflow-section {
    margin: 50px 0;
    padding: 40px 30px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #eef2f6;
}

.workflow-section h2 {
    color: #343c5c;
    font-size: 24px;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 25px;
}

.step {
    flex: 1;
    background: #ffffff;
    padding: 22px 18px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.step-num {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: #ff6229;
    margin-bottom: 10px;
    border-bottom: 2px solid #ff6229;
}

.step h4 {
    color: #343c5c;
    font-size: 16px;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    line-height: 21px;
}

.certificazioni-section {
    margin: 50px 0;
}

.certificazioni-section h2 {
    color: #343c5c;
    font-size: 24px;
}

.cert-grid {
    display: flex;
    gap: 22px;
    margin-top: 25px;
}

.cert-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e9edf2;
    padding: 25px 22px;
    border-radius: 6px;
}

.cert-card i {
    font-size: 28px;
    color: #ff6229;
    margin-bottom: 14px;
}

.cert-card h4 {
    color: #343c5c;
    font-size: 17px;
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 14px;
    line-height: 23px;
}

.legal-box {
    background-color: #343c5c;
    color: #ffffff;
    padding: 35px 40px;
    border-radius: 8px;
    margin-top: 55px;
}

.legal-box h2 {
    color: #ffffff;
    font-size: 21px;
    margin-bottom: 22px;
    border-bottom: 2px solid #ff6229;
    display: inline-block;
    padding-bottom: 6px;
}

.legal-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.legal-grid p {
    color: #d1d6e6;
    font-size: 15px;
    margin-bottom: 8px;
}

.legal-grid strong {
    color: #ffffff;
}

.legal-grid a {
    color: #ff8c61;
}

/* FOOTER */
#footer {
    background: #ff6229;
    color: #fff;
    padding: 50px 10%;
    clear: both;
    overflow: auto;
}

#footer div {
    width: 31%;
    float: left;
    padding: 0px 1%;
}

#footer div img {
    background: #fff;
    width: 250px;
    padding: 10px;
    border-radius: 10px;
}

#footer h3 {
    margin-top: 5px;
    margin-bottom: 5px;
    border-bottom: 2px solid #fff;
    width: 100px;
}

#footer ul {
    list-style: none;
}

#footer li {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 4px;
}

#footer i {
    font-size: 32px;
    margin-top: 10px;
}

#footer a {
    color: #fff;
}

#credits {
    background: #303030;
    text-align: center;
    color: #f2f2f2;
    padding: 12px;
    clear: both;
    font-size: 13px;
}

#credits img {
    vertical-align: middle;
    width: 110px;
}

/* ==========================================================================
   PAGINA CONTATTI (DESKTOP)
   ========================================================================== */

.contacts-hero {
    margin-bottom: 35px;
}

.contacts-hero h2 {
    color: #343c5c;
    font-size: 22px;
    margin-bottom: 15px;
}

/* Sede Centrale */
.main-contact-card {
    background: #fdfbf9;
    border: 1px solid #f2ebe6;
    border-left: 5px solid #ff6229;
    padding: 25px 30px;
    border-radius: 6px;
    margin-bottom: 45px;
    box-shadow: 0 3px 12px rgba(52, 60, 92, 0.04);
}

.main-contact-card h3 {
    color: #343c5c;
    font-size: 20px;
    margin-bottom: 12px;
}

.main-contact-card h3 i {
    color: #ff6229;
    font-size: 22px !important;
    margin-right: 10px !important;
}

.main-contact-card .company-name {
    font-size: 17px;
    color: #343c5c;
    margin-bottom: 12px;
}

.contact-info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-top: 10px;
}

.contact-info-list li {
    font-size: 15px;
    color: #555c70;
    display: flex;
    align-items: center;
}

.contact-info-list li i {
    color: #ff6229;
    font-size: 18px !important;
    margin-right: 10px !important;
    margin-top: 0 !important;
}

/* Sezione e Griglia Referenti */
.team-contacts-section h2 {
    color: #343c5c;
    font-size: 22px;
    margin-bottom: 25px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.team-card {
    background: #ffffff;
    border: 1px solid #e7ecf2;
    padding: 22px 25px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(52, 60, 92, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 60, 92, 0.1);
}

.team-dept {
    font-size: 16px;
    font-weight: 700;
    color: #ff6229;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.team-dept i {
    font-size: 18px !important;
    margin-right: 10px !important;
    margin-top: 0 !important;
}

.team-card h4 {
    font-size: 16px;
    color: #343c5c;
    margin-bottom: 6px;
}

.team-card p {
    font-size: 14px;
    color: #7b8095;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.team-card p i {
    font-size: 14px !important;
    color: #ff6229;
    margin-right: 8px !important;
    margin-top: 0 !important;
    width: 16px;
    text-align: center;
}

.member-divider {
    border: 0;
    height: 1px;
    background: #eef2f6;
    margin: 15px 0;
}