/* ============================================================
   STUDIO DI INGEGNERIA ACCORDINO - Custom Stylesheet
   Font: Eras Medium ITC (logo/intestazioni), Trebuchet MS (testo)
   ============================================================ */

/* Font Definitions */
@font-face {
    font-family: 'Eras Medium ITC';
    src: local('Eras Medium ITC'), local('ErasMediumITC-Regular'),
         url('https://fonts.cdnfonts.com/s/14878/ERASMD.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .logo-text, .nav-pills > li > a {
    font-family: 'Eras Medium ITC', sans-serif;
}

/* Header / Top Bar */
#header {
    background-color: #003366; /* Blu scuro professionale */
    padding: 0;
    width: 100%;
}
#header .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Logo styling */
.logo-container {
    padding: 18px 0 12px 0;
}
.logo-text {
    font-family: 'Eras Medium ITC', 'Arial Narrow', sans-serif;
    font-size: 28px;
    color: #ffcc00;
    text-decoration: none;
    letter-spacing: 2px;
    display: block;
    line-height: 1.2;
}
.logo-text:hover {
    text-decoration: none;
    color: #ffe066;
}
.logo-subtext {
    font-size: 12px;
    color: #cce5ff;
    display: block;
    margin-top: 4px;
    font-family: 'Trebuchet MS', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation styling */
.navbar {
    margin-top: 22px;
    margin-bottom: 0;
}
.nav-pills > li > a {
    font-family: 'Eras Medium ITC', 'Arial Narrow', sans-serif;
    color: #cce5ff;
    font-size: 14px; /* Ridotto leggermente per stare su una riga */
    text-transform: uppercase;
    padding: 8px 10px; /* Ridotto padding laterale */
    letter-spacing: 0.5px; /* Ridotto letter-spacing */
    background-color: transparent;
    white-space: nowrap; /* Impedisce il wrap del testo */
}
.nav-pills > li > a:hover {
    background-color: #0066CC;
    color: #fff;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover {
    background-color: #0066CC;
    color: #fff;
}

/* Content area */
.content-area {
    background-color: #fff;
    padding: 40px;
    margin-top: 0;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    position: relative;
    z-index: 10;
}

/* Page header strip */
.page-header-strip {
    background-color: #003366;
    padding: 12px 0;
    margin-bottom: 0;
}
.page-header-strip h4 {
    font-family: 'Eras Medium ITC', 'Arial Narrow', sans-serif;
    color: #ffcc00;
    margin: 0;
    letter-spacing: 1px;
}

h1, h2, h3 {
    font-family: 'Eras Medium ITC', 'Arial Narrow', sans-serif;
    color: #0066CC;
}
h1 { font-size: 28px; margin-bottom: 20px; }
h3 { font-size: 20px; margin-top: 30px; color: #26354a; }

/* Footer styling */
footer {
    background-color: #003366;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 13px;
}
footer a {
    color: #ffcc00;
}
footer a:hover {
    color: #fff;
    text-decoration: none;
}
.footer-info {
    text-align: center;
    margin-bottom: 10px;
}

/* Carousel fixes */
.carousel {
    margin-bottom: 0;
}
.carousel-inner > .item > img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* Utility classes */
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
