html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  /* box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb; */
  box-shadow: none;
} 

html {
  position: relative;
  min-height: 100%;
}

/* body {
  margin-bottom: 60px;
} */

/**** FOOTER ****/
.social-icon {
    width: 40px;
    height: 40px;
    background-color: #2b2b2b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #0d6efd; /* blu bootstrap */
    color: white;
}

.footer-link {
    background: none;
    border: none;
    color: #adb5bd;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}

.footer-link:hover {
    color: white;
}

/**** HERO ****/
.hero-section {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1698958656652-41ac66d0e2e0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1920');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-section .container {
    z-index: 2;
}

/* Bottone effetto hover */
.hero-btn {
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: scale(1.05);
}

/**** CHI SIAMO ****/
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/**** NUMERI ****/
.stat-box {
    padding: 20px;
}

.icon-box {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    font-size: 28px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 1.1rem;
    color: #dbeafe; /* simile a text-blue-100 */
}

/**** SETTORI INTERVENTO ****/
.sector-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

.sector-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
    background: #e7f1ff;
    color: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sector-icon i {
    font-size: 28px;
}

/**** SERVIZI ****/
.service-card {
    background: #f8f9fa;
    padding: 1.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 24px;
}

.service-description {
    line-height: 1.7;
}

/**** REALIZZAZIONI ****/
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
}

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

/* overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    color: #fff;
    /* sfumatura elegante */
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transition: opacity 0.3s ease;
}

/* effetto hover */
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

/**** CONTATTI ****/
.contact-icon {
    width: 48px;
    height: 48px;
    background: #e7f1ff;
    color: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
}

.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* rapporto 16:9 */
    height: 0;
    overflow: hidden;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-responsive-contact {
    position: relative;
    width: 100%;
    padding-bottom: 28.125%; /* rapporto 16:9 */
    height: 0;
    overflow: hidden;
}

.map-responsive-contact iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/**** BOX PAGINE REALIZZAZIONI ****/
.img-wrapper {
    position: relative;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    display: block;
}

.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.img-wrapper:hover .img-hover {
    opacity: 1;
}
