/* =========================================================
   NIMIS - GLOBAL CSS
   ========================================================= */

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #171717;
    background: #ffffff;
    line-height: 1.6;
}

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

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

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


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --red: #f07800;
    --red-dark: #d56800;

    --black: #111111;
    --dark: #171717;
    --gray-900: #292929;
    --gray-700: #555555;
    --gray-500: #777777;
    --gray-300: #dddddd;
    --gray-200: #eeeeee;
    --gray-100: #f5f5f5;

    --container: 1400px;
    --transition: 0.25s ease;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
}

.header-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 22px 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    position: relative;

    font-size: 15px;
    font-weight: 600;
    color: #444444;

    transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--red);
}

.main-nav a.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;

    height: 2px;
    background: var(--red);
}

.header-button {
    padding: 13px 22px;

    background: var(--red);
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    transition:
        background var(--transition),
        transform var(--transition);
}

.header-button:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 14px 25px;

    border: 1px solid transparent;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

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

.button-primary {
    background: var(--red);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--red-dark);
}

.button-secondary {
    border-color: #ffffff;
    color: #ffffff;
}

.button-secondary:hover {
    background: #ffffff;
    color: var(--dark);
}

.button-light {
    background: #ffffff;
    color: var(--dark);
}

.button-light:hover {
    background: var(--gray-100);
}


/* =========================================================
   HERO HOME
   ========================================================= */

.hero {
    min-height: 700px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.25)
        ),
        url("../images/hero.jpg");

    background-size: cover;
    background-position: right center;
}

.hero-content {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;

    padding: 110px 50px;

    color: #ffffff;
}

.hero-label,
.section-label {
    margin-bottom: 15px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--red);
}

.hero-label {
    color: #ffffff;
}

.hero h1 {
    max-width: 850px;

    font-size: clamp(50px, 6vw, 86px);
    line-height: 0.98;
    letter-spacing: -3px;
    font-weight: 800;
}

.hero-text {
    max-width: 620px;
    margin-top: 30px;

    font-size: 18px;
    color: #eeeeee;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.services,
.brands,
.offers {
    max-width: var(--container);
    margin: 0 auto;
    padding: 110px 50px;
}

.section-heading {
    margin-bottom: 55px;
}

.section-heading h2 {
    max-width: 800px;

    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.section-heading p {
    max-width: 650px;
    margin-top: 20px;

    color: var(--gray-700);
    font-size: 17px;
}


/* =========================================================
   SERVICES - HOME
   ========================================================= */

.services {
    background: #ffffff;
}

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

.service-card {
    min-height: 320px;
    padding: 38px;

    border: 1px solid #e5e5e5;
    background: #ffffff;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);

    border-color: #cccccc;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.08);
}

.service-number {
    margin-bottom: 55px;

    font-size: 13px;
    font-weight: 800;
    color: var(--red);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 28px;
}

.service-card p {
    margin-bottom: 28px;
    color: var(--gray-700);
}

.service-card a {
    font-weight: 700;
}

.service-card a:hover {
    color: var(--red);
}


/* =========================================================
   BRANDS
   ========================================================= */

.brands {
    max-width: none;
    background: var(--gray-100);
}

.brands > * {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    border-top: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
}

.brand {
    min-height: 130px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: #ffffff;

    border-right: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;

    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;

    transition:
        background var(--transition),
        color var(--transition);
}

.brand:hover {
    background: var(--dark);
    color: #ffffff;
}


/* =========================================================
   HOME OFFER
   ========================================================= */

.offer-placeholder {
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding: 60px;

    background: var(--dark);
    color: #ffffff;
}

.offer-placeholder h3 {
    margin-bottom: 15px;
    font-size: 38px;
}

.offer-placeholder p {
    max-width: 600px;
    margin-bottom: 30px;
    color: #cccccc;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    background: var(--red);
    color: #ffffff;
}

.cta-content {
    max-width: var(--container);
    margin: 0 auto;

    padding: 110px 50px;
}

.cta .section-label {
    color: #ffffff;
}

.cta h2 {
    max-width: 900px;

    font-size: clamp(45px, 5vw, 70px);
    line-height: 0.98;
    letter-spacing: -2px;
}

.cta p:not(.section-label) {
    max-width: 600px;
    margin: 25px 0 35px;

    font-size: 18px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #111111;
    color: #ffffff;
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;

    padding: 80px 50px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
}

.footer-company h3 {
    margin-bottom: 15px;

    font-size: 30px;
    letter-spacing: 3px;
}

.footer-company p {
    max-width: 320px;
    color: #999999;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 10px;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    color: #999999;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact p {
    color: #999999;
}

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;

    padding: 25px 50px;

    border-top: 1px solid #2b2b2b;

    color: #666666;
    font-size: 13px;
}


/* =========================================================
   INTERNAL PAGE HERO
   ========================================================= */

.page-hero {
    padding: 110px 50px;

    background: var(--dark);
    color: #ffffff;
}

.page-hero-content {
    max-width: var(--container);
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 850px;

    font-size: clamp(48px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -3px;
}

.page-hero p {
    max-width: 650px;
    margin-top: 25px;

    color: #cccccc;
    font-size: 18px;
}


/* =========================================================
   AZIENDA
   ========================================================= */

.about-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 120px 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;

    align-items: center;
}

/* IMMAGINE */

.about-image {
    width: 100%;
    overflow: hidden;
    background: #eeeeee;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}


/* TESTO */

.about-content {
    max-width: 600px;
}

.about-content .section-label {
    margin-bottom: 18px;
}

.about-content h2 {
    margin-bottom: 25px;

    font-size: clamp(40px, 4vw, 60px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.about-content p {
    margin-bottom: 18px;

    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   VALUES
   ========================================================= */

.values-section {
    padding: 100px 50px;
    background: var(--gray-100);
}

.values-container {
    max-width: var(--container);
    margin: 0 auto;
}

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

.value-card {
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

.value-number {
    margin-bottom: 45px;

    font-size: 13px;
    font-weight: 800;
    color: var(--red);
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 26px;
}

.value-card p {
    color: var(--gray-700);
}


/* =========================================================
   TEAM
   ========================================================= */

.team-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 110px 50px;
}

.team-intro {
    max-width: 700px;
    margin-bottom: 55px;
}

.team-intro h2 {
    margin-bottom: 18px;

    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
}

.team-intro p {
    color: var(--gray-700);
    font-size: 17px;
}

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

.team-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.team-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eeeeee;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    margin-bottom: 6px;
    font-size: 22px;
}

.team-info p {
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
}

.about-contact {
    margin-top: 70px;
}


/* =========================================================
   AZIENDA - MOBILE
   ========================================================= */

@media (max-width: 1000px) {

    .about-section {
        padding: 80px 30px;
    }

    .about-grid {
        gap: 50px;
    }

    .team-section {
        padding: 80px 30px;
    }
}


@media (max-width: 650px) {

    .about-section {
        padding: 70px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        max-width: none;
    }

    .about-content h2 {
        font-size: 40px;
    }

    .about-content p {
        font-size: 16px;
    }
s
    .team-section {
        padding: 70px 20px;
    }

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

/* =========================================================
   TEAM
   ========================================================= */

.team-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 110px 50px;
}

.team-intro {
    max-width: 700px;
    margin-bottom: 55px;
}

.team-intro h2 {
    margin-bottom: 18px;

    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
}

.team-intro p {
    color: var(--gray-700);
    font-size: 17px;
}

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

.team-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.team-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eeeeee;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    margin-bottom: 6px;
    font-size: 22px;
}

.team-info p {
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
}

.about-contact {
    margin-top: 70px;
}


/* =========================================================
   SERVIZI PAGE
   ========================================================= */

.services-intro {
    max-width: var(--container);
    margin: 0 auto;

    padding: 110px 50px;

    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 100px;

    align-items: end;
}

.services-intro h2 {
    font-size: clamp(45px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -2px;
}

.services-intro > p {
    color: var(--gray-700);
    font-size: 17px;
}

.services-list {
    max-width: var(--container);
    margin: 0 auto;

    padding: 0 50px 120px;
}

.service-detail {
    display: grid;
    grid-template-columns: 0.35fr 1fr;
    gap: 70px;

    padding: 60px 0;

    border-top: 1px solid #dddddd;
}

.service-detail:first-child {
    border-top: 0;
}

.service-detail-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--red);
}

.service-detail-title h2 {
    margin-bottom: 20px;

    font-size: clamp(35px, 4vw, 55px);
    line-height: 1;
    letter-spacing: -2px;
}

.service-detail-text {
    max-width: 700px;
    color: var(--gray-700);
    font-size: 17px;
}

.service-detail-text p {
    margin-bottom: 18px;
}

.text-link {
    display: inline-block;
    margin-top: 10px;

    font-weight: 700;
}

.text-link:hover {
    color: var(--red);
}

.services-cta {
    margin-top: 30px;
}


/* =========================================================
   OFFER PAGE
   ========================================================= */

.offers-intro {
    max-width: var(--container);
    margin: 0 auto;

    padding: 110px 50px;

    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 100px;

    align-items: end;
}

.offers-intro h2 {
    font-size: clamp(45px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -2px;
}

.offers-intro > p {
    color: var(--gray-700);
    font-size: 17px;
}

.offers-list {
    max-width: var(--container);
    margin: 0 auto;

    padding: 0 50px 120px;
}

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

.offer-card {
    overflow: hidden;

    border: 1px solid #dddddd;
    background: #ffffff;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.offer-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.offer-image {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #eeeeee;
}

.offer-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.offer-card:hover .offer-image img {
    transform: scale(1.04);
}

.offer-badge {
    position: absolute;
    top: 20px;
    left: 20px;

    padding: 8px 12px;

    background: var(--red);
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.offer-content {
    padding: 30px;
}

.offer-date {
    display: block;
    margin-bottom: 12px;

    color: var(--red);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.offer-content h3 {
    margin-bottom: 12px;
    font-size: 25px;
}

.offer-content p {
    margin-bottom: 25px;
    color: var(--gray-700);
}

.offer-link {
    font-weight: 700;
}

.offer-link:hover {
    color: var(--red);
}

.offers-cta {
    max-width: var(--container);
    margin: 0 auto 80px;

    padding: 90px 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 40px;

    background: var(--red);
    color: #ffffff;
}

.offers-cta .section-label {
    color: #ffffff;
}

.offers-cta h2 {
    max-width: 800px;

    font-size: clamp(40px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -2px;
}


/* =========================================================
   CONTATTI
   ========================================================= */

.contact-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 110px 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 25px;

    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
}

.contact-info > p {
    max-width: 550px;
    margin-bottom: 35px;

    color: var(--gray-700);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail strong {
    display: block;
    margin-bottom: 3px;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail span {
    color: var(--gray-700);
}

.contact-detail a:hover {
    color: var(--red);
}

.contact-map {
    min-height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--gray-100);
    border: 1px solid #dddddd;

    color: var(--gray-500);
}


/* =========================================================
   CONTACT FORMS
   ========================================================= */

.contact-forms {
    max-width: var(--container);
    margin: 0 auto;

    padding: 0 50px 120px;
}

.contact-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form-box {
    padding: 45px;

    background: var(--gray-100);
    border: 1px solid #e2e2e2;
}

.contact-form-box h2 {
    margin-bottom: 12px;
    font-size: 32px;
}

.contact-form-box > p {
    margin-bottom: 30px;
    color: var(--gray-700);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid #cccccc;
    background: #ffffff;

    outline: none;

    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--red);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}


/* =========================================================
   ADMIN LOGIN
   ========================================================= */

.admin-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #111111 0%,
            #202020 100%
        );
}

.admin-login {
    width: 100%;
    padding: 30px;
}

.admin-login-box {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;

    padding: 50px;

    background: #ffffff;
}

.admin-logo {
    margin-bottom: 35px;

    font-size: 30px;
    font-weight: 800;
    letter-spacing: 3px;
}

.admin-label {
    margin-bottom: 8px;

    color: var(--red);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.admin-login-box h1 {
    margin-bottom: 10px;

    font-size: 42px;
    line-height: 1;
}

.admin-description {
    margin-bottom: 30px;
    color: var(--gray-700);
}

.admin-login-form .button {
    width: 100%;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .header-container {
        padding: 20px 30px;
    }

    .main-nav {
        gap: 20px;
    }

    .header-button {
        display: none;
    }

    .hero-content {
        padding: 90px 30px;
    }

    .services,
    .brands,
    .offers {
        padding: 80px 30px;
    }

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

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        padding: 60px 30px;
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        padding: 25px 30px;
    }

    .page-hero {
        padding: 90px 30px;
    }

    .about-section,
    .team-section {
        padding: 80px 30px;
    }

    .about-grid {
        gap: 50px;
    }

    .values-section {
        padding: 80px 30px;
    }

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

    .services-intro,
    .offers-intro {
        grid-template-columns: 1fr;
        gap: 40px;

        padding: 80px 30px;
    }

    .services-list,
    .offers-list {
        padding-left: 30px;
        padding-right: 30px;
    }

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

    .offers-cta {
        margin-bottom: 60px;
        padding: 80px 30px;
    }

    .contact-section {
        padding: 80px 30px;
    }

    .contact-forms {
        padding: 0 30px 80px;
    }

    .contact-grid {
        gap: 50px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .header-container {
        flex-wrap: wrap;
        padding: 18px 20px;
    }

    .logo {
        font-size: 26px;
    }

    .main-nav {
        order: 3;

        width: 100%;

        justify-content: space-between;
        gap: 8px;

        overflow-x: auto;
    }

    .main-nav a {
        flex-shrink: 0;
        font-size: 12px;
    }

    .main-nav a.active::after {
        bottom: -6px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 50px;
        letter-spacing: -2px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .services,
    .brands,
    .offers {
        padding: 70px 20px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 40px;
    }

    .service-card {
        min-height: auto;
        padding: 30px;
    }

    .service-number {
        margin-bottom: 35px;
    }

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

    .brand {
        min-height: 100px;
        padding: 15px;
        font-size: 15px;
    }

    .offer-placeholder {
        padding: 40px 25px;
    }

    .offer-placeholder h3 {
        font-size: 30px;
    }

    .cta-content {
        padding: 70px 20px;
    }

    .cta h2 {
        font-size: 45px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;

        padding: 60px 20px;
    }

    .footer-bottom {
        padding: 25px 20px;
    }

    .page-hero {
        padding: 70px 20px;
    }

    .page-hero h1 {
        font-size: 48px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .about-section,
    .team-section {
        padding: 70px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content h2,
    .team-intro h2 {
        font-size: 40px;
    }

    .values-section {
        padding: 70px 20px;
    }

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

    .value-card {
        padding: 30px;
    }

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

    .team-info {
        padding: 22px;
    }

    .services-intro,
    .offers-intro {
        padding: 70px 20px;
    }

    .services-intro h2,
    .offers-intro h2 {
        font-size: 45px;
    }

    .services-list,
    .offers-list {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 70px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 45px 0;
    }

    .service-detail-title h2 {
        font-size: 40px;
    }

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

    .offer-content {
        padding: 25px;
    }

    .offers-cta {
        margin-bottom: 40px;
        padding: 70px 20px;

        flex-direction: column;
        align-items: flex-start;
    }

    .offers-cta h2 {
        font-size: 45px;
    }

    .contact-section {
        padding: 70px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h2 {
        font-size: 40px;
    }

    .contact-map {
        min-height: 300px;
    }

    .contact-forms {
        padding: 0 20px 70px;
    }

    .contact-forms-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-box {
        padding: 30px 25px;
    }

    .admin-login {
        padding: 20px;
    }

    .admin-login-box {
        padding: 35px 25px;
    }
}

/* =========================================================
   SERVIZI - LAYOUT DEFINITIVO
   ========================================================= */

/* Fascia grigia a tutta larghezza */
.services-list {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 100px 50px;
    background: var(--gray-100);
}

/* Contenitore centrale, allineato alla sezione Valori */
.services-cards-grid {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* Card bianche */
.service-detail-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e5e5e5;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

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

/* Immagini */
.service-detail-image {
    position: relative;
    width: 100%;
    height: 230px;
    flex-shrink: 0;
    overflow: hidden;
    background: #eeeeee;
}

.service-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Numero del servizio */
.service-detail-number {
    position: absolute;
    top: 15px;
    left: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: var(--red);
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

/* Testo */
.service-detail-content {
    flex: 1;
    padding: 30px;
}

.service-detail-content h2 {
    margin-bottom: 15px;
    font-size: 26px;
    line-height: 1.2;
}

.service-detail-content p {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.7;
}

/* Tablet */
@media (max-width: 1000px) {
    .services-list {
        padding: 80px 30px;
    }

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

/* Smartphone */
@media (max-width: 650px) {
    .services-list {
        padding: 60px 20px;
    }

    .services-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-detail-image {
        height: 240px;
    }

    .service-detail-content {
        padding: 25px;
    }
}

/* CONTATTI - MAPPA GOOGLE MAPS */

.contact-map {
    width: 100%;
    min-width: 0;
    min-height: 450px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #f5f5f5;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
}

.contact-detail a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    overflow-wrap: anywhere;
}

.contact-detail a:hover {
    color: var(--red);
}

.contact-detail small {
    display: block;
    margin-top: 5px;
    color: var(--gray-700);
    font-size: 13px;
}

@media (max-width: 768px) {
    .contact-map,
    .contact-map iframe {
        min-height: 350px;
    }
}

/* =========================================================
   LOGO HEADER NIMIS
   ========================================================= */

.site-header .header-container > a.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 1;
}

.site-header .header-container > a.logo img.logo-img {
    display: block;
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: 180px !important;
    object-fit: contain;
}


.site-header .header-container > a.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 1;
}

.site-header .header-container > a.logo img.logo-img {
    display: block;
    height: 55px !important;
    width: auto !important;
    max-height: 55px !important;
    max-width: 260px !important;
    object-fit: contain;
}


/* Icone servizi - responsive */
.service-card .service-number {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    margin-bottom: clamp(30px, 4vw, 55px);
    background: transparent;
}

.service-card .service-number img {
    display: block;
    width: clamp(32px, 3vw, 48px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
}


/* Icone servizi - pagina Servizi */
.value-card .value-number {
    display: flex;
    align-items: center;
    margin: 0 0 clamp(30px, 4vw, 55px);
    background: transparent;
}

.value-card .value-number img {
    display: block;
    width: clamp(32px, 3vw, 48px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* =========================================================
   OFFER LIGHTBOX
   ========================================================= */

.offer-image-button {
    display: block;
    padding: 0;
    border: 0;
    cursor: zoom-in;
    text-align: inherit;
    font: inherit;
}

.offer-image-button:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: -3px;
}

.offer-image-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.78);
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.offer-image-button:hover .offer-image-hint,
.offer-image-button:focus-visible .offer-image-hint {
    opacity: 1;
}

.offer-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 60px 24px 24px;
    border: 0;
    background: rgba(0, 0, 0, 0.94);
    overflow: hidden;
}

.offer-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.94);
}

.offer-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
}

.offer-lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.offer-lightbox-close:hover {
    background: var(--red);
    transform: scale(1.05);
}

@media (max-width: 650px) {
    .offer-lightbox {
        padding: 64px 10px 16px;
    }

    .offer-lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .offer-image-hint {
        opacity: 1;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}



/* =========================================================
   POPUP ULTIMA OFFERTA - HOME
   ========================================================= */

.latest-offer-popup {
    position: fixed;
    inset: 0;
    width: min(720px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    background: #ffffff;
    color: var(--dark);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.latest-offer-popup[open] {
    display: block;
    animation: latest-offer-popup-in 0.25s ease-out;
}

.latest-offer-popup::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.latest-offer-popup-content {
    padding: clamp(24px, 4vw, 42px);
    text-align: center;
}

.latest-offer-popup-label {
    margin: 0 42px 8px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.latest-offer-popup h2 {
    margin: 0 42px 22px;
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.15;
}

.latest-offer-popup-image-link {
    display: block;
    width: 100%;
    max-height: 55vh;
    overflow: hidden;
    background: var(--gray-100);
}

.latest-offer-popup-image-link img {
    display: block;
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
}

.latest-offer-popup-date {
    margin: 16px 0 20px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 700;
}

.latest-offer-popup-cta {
    min-width: 190px;
}

.latest-offer-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    background: #ffffff;
    color: var(--dark);
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.latest-offer-popup-close:hover {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

@keyframes latest-offer-popup-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 650px) {
    .latest-offer-popup {
        width: calc(100% - 24px);
        max-height: calc(100% - 24px);
    }

    .latest-offer-popup-content {
        padding: 58px 16px 22px;
    }

    .latest-offer-popup-label,
    .latest-offer-popup h2 {
        margin-left: 0;
        margin-right: 0;
    }

    .latest-offer-popup-image-link img {
        max-height: 58vh;
    }
}
