
:root {
    --app-primary: #111827;
    --app-primary-rgb: 17, 24, 39;
    --app-secondary: #e31e24;
    --app-secondary-rgb: 227, 30, 36;
    --app-accent: #dcecf2;
    --app-surface: #f5f7f8;
    --app-muted: #667085;
    --app-border: rgba(17, 24, 39, .10);
    --app-radius: 1.4rem;
    --app-radius-sm: .9rem;
    --app-shadow: 0 24px 70px rgba(17, 24, 39, .12);
}

html { scroll-behavior: smooth; }
body {
    color: var(--app-primary);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
section { scroll-margin-top: 94px; }

.text-secondary-app { color: var(--app-secondary) !important; }
.bg-app-surface { background: var(--app-surface); }
.section-space { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: var(--app-secondary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.section-kicker::before {
    content: "";
    width: 1.8rem;
    height: 2px;
    background: currentColor;
}
.section-title {
    max-width: 850px;
    margin-bottom: 1.15rem;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .98;
}
.section-copy {
    max-width: 760px;
    color: var(--app-muted);
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.topbar {
    background: var(--app-primary);
    color: rgba(255,255,255,.82);
    font-size: .86rem;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }

.navbar {
    padding: .9rem 0;
    background: rgba(255,255,255,.92) !important;
    border-bottom: 1px solid rgba(17,24,39,.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    white-space: normal;
}
.navbar-tagline {
    max-width: 140px;
    color: var(--app-primary);
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.35;
}
.navbar-brand img {
    width: 175px;
    height: auto;
    display: block;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .navbar-brand { gap: .55rem; margin-right: .5rem; }
    .navbar-brand img { max-width: 110px; }
    .navbar-tagline { max-width: 105px; font-size: .75rem; }
}
.navbar .nav-link {
    padding: .75rem .85rem !important;
    color: var(--app-primary);
    font-weight: 650;
    font-size: .94rem;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus { color: var(--app-secondary); }

.btn-app-primary,
.btn-app-secondary,
.btn-app-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.25rem;
    border-radius: 999px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-app-primary {
    color: #fff;
    background: var(--app-primary);
    border: 1px solid var(--app-primary);
}
.btn-app-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17,24,39,.18); }
.btn-app-secondary {
    color: #fff;
    background: var(--app-secondary);
    border: 1px solid var(--app-secondary);
}
.btn-app-secondary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--app-secondary-rgb),.25); }
.btn-app-outline {
    color: var(--app-primary);
    background: transparent;
    border: 1px solid rgba(17,24,39,.20);
}
.btn-app-outline:hover { color: var(--app-primary); background: var(--app-surface); transform: translateY(-2px); }

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 9rem) 0 clamp(4rem, 7vw, 7rem);
    background:
        radial-gradient(circle at 20% 10%, rgba(220,236,242,.78), transparent 34%),
        linear-gradient(180deg, #fff 0%, #f7f9fa 100%);
}
.hero::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -10rem;
    width: 32rem;
    height: 32rem;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 50%;
    box-shadow: inset 0 0 0 5rem rgba(255,255,255,.35);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .58rem 1.5rem;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    font-size: 1.5rem;
    font-weight: 700;
}
.hero-badge i { color: var(--app-secondary); }
.hero h1 {
    max-width: 760px;
    margin: 1.3rem 0 1.4rem;
    font-size: clamp(3.2rem, 7vw, 7.6rem);
    font-weight: 850;
    letter-spacing: -.072em;
    line-height: .88;
}
.hero h1 span { color: var(--app-secondary); }
.hero-lead {
    max-width: 690px;
    color: var(--app-muted);
    font-size: clamp(1.1rem, 2vw, 1.38rem);
    line-height: 1.65;
}
.hero-visual {
    position: relative;
    min-height: 610px;
}
.hero-main-img {
    position: absolute;
    inset: 0 3.25rem 0 0;
    width: calc(100% - 3.25rem);
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: var(--app-shadow);
}
.hero-floating-card {
    position: absolute;
    right: 0;
    bottom: 2rem;
    width: min(310px, 78%);
    padding: 1.3rem;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 1.2rem;
    box-shadow: 0 20px 55px rgba(17,24,39,.15);
    backdrop-filter: blur(18px);
}
.hero-floating-card strong { display: block; font-size: 1.15rem; }
.hero-floating-card span { color: var(--app-muted); font-size: .92rem; }

.stat-strip {
    border-top: 1px solid var(--app-border);
    border-bottom: 1px solid var(--app-border);
    background: #fff;
}
.stat-item { padding: 1.7rem 0; }
.stat-item strong { display: block; font-size: 1.25rem; font-weight: 800; }
.stat-item span { color: var(--app-muted); font-size: .88rem; }

.service-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--app-secondary-rgb),.28);
    box-shadow: 0 22px 60px rgba(17,24,39,.10);
}
.service-icon {
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1.5rem;
    place-items: center;
    color: var(--app-secondary);
    background: rgba(var(--app-secondary-rgb),.08);
    border-radius: 1rem;
    font-size: 1.3rem;
}
.service-card p { color: var(--app-muted); line-height: 1.7; }

.about-image-wrap { position: relative; min-height: 610px; }
.about-image-main {
    width: calc(100% - 3rem);
    height: 100%;
    min-height: 610px;
    object-fit: cover;
    border-radius: 2rem;
}
.about-image-small {
    position: absolute;
    right: 0;
    bottom: 2.5rem;
    width: 44%;
    aspect-ratio: 1 / 1.12;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 1.4rem;
    box-shadow: var(--app-shadow);
}
.check-list { display: grid; gap: .9rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: .8rem; color: var(--app-muted); }
.check-list i { color: var(--app-secondary); font-size: 1.15rem; margin-top: .12rem; }

.product-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #fff;
    background: var(--app-primary);
    border-radius: 2rem;
}
.product-panel::after {
    content: "";
    position: absolute;
    right: -5rem;
    top: -5rem;
    width: 21rem;
    height: 21rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
}
.product-panel > * { position: relative; z-index: 1; }
.product-heading { letter-spacing: -.05em; }
.product-list-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .95rem 0;
    color: rgba(255,255,255,.82);
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.product-list-item i { color: #fff; margin-top: .1rem; }

.process-card {
    position: relative;
    padding: 1.6rem;
    border-top: 1px solid var(--app-border);
}
.process-number {
    display: inline-flex;
    margin-bottom: 1.2rem;
    color: var(--app-secondary);
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .12em;
}
.process-card p { color: var(--app-muted); margin-bottom: 0; line-height: 1.7; }

.gallery-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    background: #e9eef0;
    aspect-ratio: 4 / 5;
    cursor: zoom-in;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}
.gallery-card:hover img { transform: scale(1.045); filter: brightness(.86); }
.gallery-overlay {
    position: absolute;
    inset: auto 1rem 1rem auto;
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    color: var(--app-primary);
    background: rgba(255,255,255,.94);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.gallery-card:hover .gallery-overlay,
.gallery-card:focus-visible .gallery-overlay { opacity: 1; transform: translateY(0); }
.gallery-modal-img {
    max-height: 84vh;
    width: 100%;
    object-fit: contain;
    background: #0b1018;
}

.cta-banner {
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 5rem);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(17,24,39,.96), rgba(17,24,39,.76)),
        url('../img/bg-vetrata-panoramica-portico.jpeg') center/cover;
    border-radius: 2rem;
}
.cta-banner h2 {
    max-width: 800px;
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: .98;
}
.cta-banner p { max-width: 680px; color: rgba(255,255,255,.72); font-size: 1.12rem; }

.contact-card {
    padding: 1.35rem;
    border: 1px solid var(--app-border);
    border-radius: 1.1rem;
    background: #fff;
}
.contact-card i { color: var(--app-secondary); font-size: 1.25rem; }
.contact-card small { display: block; color: var(--app-muted); margin-bottom: .2rem; }
.contact-card a { text-decoration: none; font-weight: 750; }
.contact-card a:hover { color: var(--app-secondary); }
.hours-table { width: 100%; }
.hours-table td { padding: .75rem 0; border-bottom: 1px solid var(--app-border); }
.hours-table td:last-child { text-align: right; color: var(--app-muted); }
.map-frame {
    width: 100%;
    min-height: 480px;
    border: 0;
    border-radius: 1.5rem;
}

footer {
    color: rgba(255,255,255,.72);
    background: #0b1018;
}
footer a { color: rgba(255,255,255,.78); text-decoration: none; }
footer a:hover { color: #fff; }
.footer-logo {
    display: block;
    width: 175px;
    max-width: 100%;
    height: auto;
    background-color: white;
    padding: 1rem
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); }

.floating-whatsapp {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1040;
    display: grid;
    width: 3.6rem;
    height: 3.6rem;
    place-items: center;
    color: #fff;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 14px 35px rgba(0,0,0,.2);
    font-size: 1.45rem;
    text-decoration: none;
    transition: transform .2s ease;
}
.floating-whatsapp:hover { color: #fff; transform: translateY(-3px) scale(1.03); }

@media (max-width: 991.98px) {
    .hero-visual { min-height: 520px; margin-top: 3rem; }
    .navbar-collapse { padding-top: 1rem; }
    .navbar .btn-app-secondary { width: 100%; margin-top: .5rem; }
}

@media (max-width: 575.98px) {
    .topbar .topbar-address { display: none; }
    .navbar-brand img { width: 145px; }
    .hero { padding-top: 4rem; }
    .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
    .hero-visual { min-height: 430px; }
    .hero-main-img { inset: 0 1.4rem 0 0; width: calc(100% - 1.4rem); border-radius: 1.4rem; }
    .hero-floating-card { bottom: 1.25rem; padding: 1rem; }
    .about-image-wrap, .about-image-main { min-height: 470px; }
    .gallery-card { border-radius: .75rem; }
    .section-space { padding: 4.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}


/* MULTIPAGE COMPONENTS */
.navbar .nav-link.active {
    color: var(--app-secondary);
}
.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 8rem) 0;
    background:
        radial-gradient(circle at 18% 5%, rgba(220,236,242,.82), transparent 32%),
        linear-gradient(180deg, #fff 0%, #f7f9fa 100%);
    border-bottom: 1px solid var(--app-border);
}
.page-hero h1 {
    max-width: 900px;
    margin: 0 0 1.5rem;
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    font-weight: 850;
    letter-spacing: -.068em;
    line-height: .92;
}
.page-hero-lead {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--app-muted);
    font-size: clamp(1.08rem, 1.8vw, 1.35rem);
    line-height: 1.7;
}
.page-hero-image-wrap {
    min-height: 440px;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: var(--app-shadow);
}
.page-hero-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}
.breadcrumb {
    --bs-breadcrumb-divider-color: rgba(17,24,39,.35);
    --bs-breadcrumb-item-active-color: var(--app-muted);
    font-size: .9rem;
}
.breadcrumb a {
    color: var(--app-primary);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--app-secondary); }
.image-link-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.image-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(17,24,39,.10);
}
.image-link-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.image-link-card-body { padding: 1.5rem; }
.image-link-card-body p { color: var(--app-muted); line-height: 1.7; }
.image-link-card-body a {
    color: var(--app-secondary);
    font-weight: 800;
    text-decoration: none;
}
@media (max-width: 991.98px) {
    .page-hero-image-wrap,
    .page-hero-image-wrap img { min-height: 380px; }
}
@media (max-width: 575.98px) {
    .page-hero { padding: 3.75rem 0; }
    .page-hero h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
    .page-hero-image-wrap,
    .page-hero-image-wrap img { min-height: 320px; border-radius: 1.4rem; }
}
