/*
Theme Name: PG Consulenza Theme
Theme URI: https://tuosito.it
Author: Bytesystem
Description: Tema custom Bootstrap 5 per studio consulenti del lavoro
Version: 1.0
Text Domain: pgconsulenza
*/
:root {
    --pg-red-gradient: linear-gradient(
        to bottom,
        #91080F 0,
        #AE0911 20%,
        #91080F 50%,
        #7E070D 80%,
        #91080F 100%
    );
}
.topbar {
    background: var(--pg-red-gradient);
    font-size: 0.9rem;
}
.custom-logo {
    max-height: 65px !important;
    width: auto !important;
    height: auto !important;
}

.navbar-brand {
    padding: 0;
}

@media (max-width: 991px) {
    .custom-logo,
    .navbar-brand img {
        max-height: 50px !important;
        height: auto !important;
        width: auto !important;
    }
}
/* Spaziatura tra le voci */
.main-menu > li {
    margin-left: 25px; /* distanza tra le voci */
    position: relative; /* per underline animato */
}

/* Link principali */
.main-menu a {
    font-weight: 500;
    color: #2c2c2c;
    text-transform: uppercase;
	text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* Hover: cambia colore e sottolinea */
.main-menu a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #91080F; /* rosso istituzionale */
    transition: width 0.3s ease;
}

.main-menu a:hover span::after,
.main-menu li.current-menu-item a span::after {
    width: 100%;
}

.main-menu a:hover {
    color: #91080F;
}
.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
}
/* Hero con immagine di sfondo */
.hero-hero-bg {
    background: linear-gradient(
                    rgba(0,0,0,0.5),
                    rgba(0,0,0,0.5)
                ),
                url('/wp-content/uploads/2026/02/page.jpeg') center/cover no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-hero-bg h1,
.hero-hero-bg p {
    color: #fff;
}

.hero-hero-bg .btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.hero-hero-bg .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.2);
}
/* Card servizio moderno */
/* Card servizio moderno */
.service-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
    padding: 2rem 1.5rem;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card .card-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Icone */
.service-card .icon i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .icon i {
    transform: scale(1.2);
    color: #b11217; /* rosso leggermente più acceso al hover */
}

.bg-danger {
    background-color: #b11217 !important;
}
.cta-section {
    background: var(--pg-red-gradient);
}
.btn-pg {
    background: var(--pg-red-gradient);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-pg:hover {
    filter: brightness(1.1);
    color: #fff;
}