* {
    box-sizing: border-box;
}

[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #f6f1e8;
    background: #0d1117;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

body.intro-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 18% 18%, rgba(194, 162, 106, .2), transparent 30%), radial-gradient(circle at 80% 78%, rgba(95, 152, 181, .16), transparent 28%), #0d1117;
    transition: opacity .45s ease, visibility .45s ease;
}

.intro.hidden {
    opacity: 0;
    visibility: hidden;
}

.intro-panel {
    width: min(680px, 100%);
    padding: 46px;
    text-align: center;
    background: rgba(18, 23, 31, .92);
    border: 1px solid rgba(194, 162, 106, .25);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
}

.intro-mark {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: #0d1117;
    background: #c2a26a;
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
}

.intro-panel h1,
.brand span {
    font-family: Georgia, "Times New Roman", serif;
}

.intro-panel h1 {
    margin: 0 0 14px;
    color: #f8efe0;
    font-size: clamp(1.6rem, 4vw, 3.8rem);
    line-height: .9;
    letter-spacing: 0;
}

.intro-panel p {
    margin: 0 auto 28px;
    color: #d9d1c4;
    line-height: 1.75;
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(13, 17, 23, .9);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    color: #f8efe0;
    font-size: 1.35rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #ddd4c5;
    font-size: .95rem;
    font-weight: 700;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: #c2a26a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #f8efe0;
}

.btn,
.cart-button,
.filter-button,
.add-cart,
.cart-close {
    border: 0;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 900;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #0d1117;
    background: #c2a26a;
    box-shadow: 0 16px 38px rgba(194, 162, 106, .24);
}

.btn-light {
    color: #f8efe0;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
}

.cart-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 15px;
    color: #0d1117;
    background: #f8efe0;
    font-weight: 900;
}

.cart-button strong {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    color: #f8efe0;
    background: #5f98b5;
}

.cart-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    gap: 52px;
    padding: 48px 0 72px;
}

.hero-copy,
.hero-media,
.concept-grid,
.section-head,
.product-card,
.projects-grid,
.showroom-grid img,
.process-grid article,
.contact-grid {
    opacity: 0;
    transform: translateY(24px);
    animation: riseIn .75s ease forwards;
}

.hero-media {
    animation-delay: .12s;
}

.eyebrow {
    margin: 0 0 12px;
    color: #c2a26a;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: #f8efe0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 4vw, 3.8rem);
    line-height: .94;
    letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 630px;
    margin: 24px 0 30px;
    color: #d9d1c4;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-media {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #12171f;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: 1;
    border: 1px solid rgba(248, 239, 224, .32);
    pointer-events: none;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

.hero-card,
.tech-badge {
    position: absolute;
    z-index: 2;
    background: #f8efe0;
    color: #0d1117;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .28);
}

.hero-card {
    left: 28px;
    bottom: 28px;
    padding: 18px 20px;
}

.hero-card span,
.tech-badge span {
    display: block;
    color: #5f98b5;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.08rem;
}

.tech-badge {
    top: 28px;
    right: 28px;
    width: 126px;
    height: 126px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-align: center;
}

.tech-badge strong {
    font-size: .9rem;
}

.category-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #0d1117;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.category-strip a {
    opacity: 1;
    transform: none;
    filter: none;
    min-height: 86px;
    display: grid;
    place-items: center;
    padding: 18px;
    color: #f8efe0;
    border-right: 1px solid rgba(255, 255, 255, .08);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease;
}

.category-strip a:hover {
    color: #0d1117;
    background: #c2a26a;
}

.section {
    padding: 92px 0;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.concept-section,
#catalogo,
.contact-section {
    color: #0d1117;
    background: #f8efe0;
}

.concept-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.concept-section .eyebrow,
#catalogo .eyebrow,
.contact-section .eyebrow {
    color: #5f98b5;
}

.concept-grid h2,
.section-head h2,
.projects-grid h2,
.contact-grid h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: .98;
    letter-spacing: 0;
}

.concept-grid p:last-child {
    margin: 0;
    color: #3f454d;
    font-size: 1.08rem;
    line-height: 1.8;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.catalog-tools {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input,
.customer-select,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(13, 17, 23, .18);
    background: #ffffff;
    color: #0d1117;
    outline: none;
}

.search-input,
.customer-select {
    min-height: 46px;
    padding: 0 14px;
}

.search-input {
    min-width: 250px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-button {
    padding: 12px 16px;
    color: #0d1117;
    background: #e9ddca;
    font-weight: 900;
    transition: background .25s ease, color .25s ease;
}

.filter-button.active,
.filter-button:hover {
    color: #f8efe0;
    background: #0d1117;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    background: #ffffff;
    border: 1px solid rgba(13, 17, 23, .12);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(194, 162, 106, .5);
    box-shadow: 0 24px 52px rgba(13, 17, 23, .14);
}

.product-card.hidden {
    display: none;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #e9ddca;
}

.product-info {
    padding: 18px;
}

.product-info span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #5f98b5;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-info h3 {
    margin: 0 0 8px;
    color: #0d1117;
    font-size: 1.08rem;
}

.product-info p {
    min-height: 54px;
    margin: 0 0 16px;
    color: #535860;
    line-height: 1.5;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price {
    color: #5f98b5;
    font-size: 1.12rem;
}

.add-cart {
    min-height: 38px;
    padding: 0 14px;
    color: #0d1117;
    background: #c2a26a;
    font-weight: 900;
}

.projects-section {
    background: #12171f;
}

.projects-grid,
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 52px;
    align-items: center;
}

.projects-grid p,
.contact-grid p {
    color: #d9d1c4;
    line-height: 1.8;
}

.projects-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.project-tags,
.contact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 28px;
}

.project-tags span {
    padding: 10px 14px;
    color: #f8efe0;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 900;
}

.showroom-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    grid-auto-rows: 260px;
    gap: 18px;
}

.showroom-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showroom-grid img:first-child,
.showroom-grid img:nth-child(4) {
    grid-row: span 2;
}

.process-section {
    padding-top: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.process-grid article {
    padding: 28px;
    color: #0d1117;
    background: #c2a26a;
}

.process-grid article:nth-child(2) {
    color: #f8efe0;
    background: #5f98b5;
}

.process-grid article:nth-child(3) {
    color: #f8efe0;
    background: #12171f;
}

.process-grid strong {
    display: block;
    margin-bottom: 48px;
    font-size: 1.7rem;
}

.process-grid h3 {
    margin: 0 0 12px;
}

.process-grid p {
    margin: 0;
    line-height: 1.7;
}

.contact-grid {
    align-items: start;
}

.contact-grid p {
    color: #3f454d;
}

.contact-tags span {
    padding: 10px 14px;
    color: #0d1117;
    background: #e9ddca;
    font-weight: 900;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(13, 17, 23, .12);
    box-shadow: 0 24px 52px rgba(13, 17, 23, .1);
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #0d1117;
    font-size: .9rem;
    font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    min-height: 46px;
    padding: 12px 14px;
    resize: vertical;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    width: min(420px, 100%);
    height: 100vh;
    padding: 24px;
    color: #0d1117;
    background: #f8efe0;
    box-shadow: -20px 0 70px rgba(0, 0, 0, .28);
    transform: translateX(105%);
    transition: transform .35s ease;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(13, 17, 23, .12);
}

.cart-head span {
    display: block;
    color: #5f98b5;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-head strong {
    display: block;
    margin-top: 4px;
}

.cart-close {
    width: 42px;
    height: 42px;
    color: #f8efe0;
    background: #0d1117;
    font-size: 1.5rem;
}

.cart-list {
    flex: 1;
    overflow: auto;
    padding: 18px 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(13, 17, 23, .12);
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.cart-item h4 {
    margin: 0 0 4px;
    font-size: .95rem;
}

.cart-item span {
    color: #5d6065;
    font-size: .88rem;
}

.cart-item button {
    border: 0;
    color: #5f98b5;
    background: transparent;
    cursor: pointer;
    font-weight: 900;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid rgba(13, 17, 23, .12);
}

.cart-total strong {
    color: #5f98b5;
    font-size: 1.35rem;
}

.cart-contact {
    width: 100%;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #0d1117;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 18px 24px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .hero,
    .concept-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showroom-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .intro-panel {
        padding: 30px 22px;
    }

    .hero {
        width: min(100% - 24px, 1180px);
        min-height: auto;
        padding: 16px 0 22px;
        gap: 12px;
    }

    .hero-media,
    .hero-media img {
        min-height: clamp(220px, 58vw, 300px);
    }

    .hero-card {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .tech-badge {
        top: 16px;
        right: 16px;
        width: 104px;
        height: 104px;
    }

    .category-strip {
        grid-template-columns: 1fr;
    }

    .category-strip a {
        min-height: 58px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .section {
        padding: 64px 0;
    }

    .section-head,
    .catalog-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: 0;
    }

    .product-grid,
    .showroom-grid {
        grid-template-columns: 1fr;
    }

    .showroom-grid {
        grid-auto-rows: 260px;
    }

    .showroom-grid img:first-child,
    .showroom-grid img:nth-child(4) {
        grid-row: span 1;
    }
}

.motion-target {
    animation: none;
    opacity: 0;
    transform: translateY(34px) scale(.96);
    filter: blur(10px);
}

.motion-target.is-visible {
    animation: smartReveal .95s cubic-bezier(.16, 1, .3, 1) var(--motion-delay, 0ms) forwards;
}

.hero-media.is-visible {
    animation-name: smartShowroomOpen;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent, rgba(194, 162, 106, .24), rgba(95, 152, 181, .18), transparent);
    transform: translateX(-130%);
    animation: smartLightPass 3.8s ease-in-out infinite;
}

.product-card,
.showroom-grid img {
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-8px) perspective(900px) rotateX(2deg) rotateY(-2deg);
}

.product-card:hover img,
.showroom-grid img:hover,
.projects-grid:hover img {
    transform: scale(1.065);
    filter: contrast(1.06) saturate(1.08);
}

.product-card img,
.showroom-grid img,
.projects-grid img {
    transition: transform .55s ease, filter .55s ease;
}

.tech-badge,
.hero-card {
    animation: smartFloat 4.2s ease-in-out infinite;
}

.tech-badge {
    animation-delay: .6s;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(194, 162, 106, .28), transparent 42%, rgba(95, 152, 181, .2));
    opacity: 0;
    transition: opacity .3s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.category-strip a.is-visible,
.filter-button:hover,
.add-cart:hover {
    animation: smartClick .42s cubic-bezier(.2, 1.5, .4, 1) forwards;
}

@keyframes smartReveal {
    0% {
        opacity: 0;
        transform: translateY(34px) scale(.96);
        filter: blur(10px);
    }
    58% {
        opacity: 1;
        transform: translateY(-5px) scale(1.012);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes smartShowroomOpen {
    0% {
        opacity: 0;
        transform: translateX(42px) scale(.95);
        clip-path: inset(0 0 0 100%);
        filter: blur(12px);
    }
    48% {
        opacity: 1;
        transform: translateX(-4px) scale(1.01);
        clip-path: inset(0 0 0 0);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        clip-path: inset(0);
        filter: blur(0);
    }
}

@keyframes smartLightPass {
    0% {
        transform: translateX(-130%);
        opacity: .25;
    }
    50% {
        opacity: .9;
    }
    100% {
        transform: translateX(130%);
        opacity: .25;
    }
}

@keyframes smartFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 20px 48px rgba(0, 0, 0, .28);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 28px 60px rgba(194, 162, 106, .22);
    }
}

@keyframes smartClick {
    0% {
        transform: scale(.96);
    }
    68% {
        transform: scale(1.07);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-target,
    .motion-target.is-visible,
    .hero-media::after,
    .tech-badge,
    .hero-card {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 16px 0 22px;
        gap: 12px;
    }

    .hero-media,
    .hero-media img {
        min-height: clamp(220px, 58vw, 300px);
    }
    .hero h1{
        font-size: clamp(2.4rem, 6vw, 3.2rem);
    }
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
        padding: 18px 0 26px;
        gap: 14px;
    }

    .hero-media,
    .hero-media img {
        min-height: clamp(230px, 38vw, 340px);
    }
}
