
* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family: Arial, sans-serif;

    background: #ffffff;

    color: #111111;

}

/* =========================

   HEADER

========================= */

header {

    min-height: 110px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 4%;

    background: white;

    border-bottom: 1px solid #eeeeee;

    position: sticky;

    top: 0;

    z-index: 1000;

}

/* LOGO */

.logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

    width: 260px;

    height: 85px;

}

.logo img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

}

/* MENU */

nav {

    display: flex;

    gap: 35px;

}

nav a {

    text-decoration: none;

    color: #111111;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s;

}

nav a:hover {

    color: #e52364;

}

/* BOTTONI */

.btn-primary,

.btn-secondary,

.btn-header {

    display: inline-block;

    padding: 15px 25px;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;

    transition: 0.3s;

}

.btn-primary {

    background: #e52364;

    color: white;

}

.btn-primary:hover {

    background: #c91550;

    transform: translateY(-2px);

}

.btn-secondary {

    border: 1px solid white;

    color: white;

}

.btn-secondary:hover {

    background: white;

    color: #111111;

}

.btn-header {

    background: #111111;

    color: white;

}

/* =========================

   HERO

========================= */

.hero {

    min-height: 750px;

    display: flex;

    align-items: center;

    padding: 80px 8%;

    background:

        linear-gradient(

            90deg,

            rgba(0,0,0,0.9),

            rgba(0,0,0,0.45),

            rgba(0,0,0,0.1)

        ),

        url("img/hero.jpg");

    background-size: cover;

    background-position: center;

    color: white;

}

.hero-content {

    max-width: 750px;

}

.sottotitolo,

.section-label {

    color: #e52364;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 20px;

}

.hero h1 {

    font-size: clamp(55px, 7vw, 105px);

    line-height: 0.95;

    letter-spacing: -5px;

    margin-bottom: 35px;

}

.hero h1 span {

    color: #e52364;

}

.descrizione {

    max-width: 500px;

    font-size: 19px;

    line-height: 1.6;

    margin-bottom: 35px;

}

.hero-buttons {

    display: flex;

    gap: 15px;

}

/* =========================

   CATEGORIE

========================= */

.categorie {

    padding: 100px 8%;

    background: #fff;

}

.categorie h2 {

    margin: 10px 0 70px;

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    line-height: 1.05;

    color: #111;

}

.categorie-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

}

/* =========================

   SINGOLA CATEGORIA

========================= */

.categoria {

    position: relative;

    min-height: 460px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    overflow: hidden;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    color: #fff;

}

/* IMMAGINE DI SFONDO */

.categoria:nth-child(1) {

    background-image: url("img/rgm-carrello-elettrico.png");

}

.categoria:nth-child(2) {

    background-image: url("img/rgm-carrello-diesel.png");

}

.categoria:nth-child(3) {

    background-image: url("img/rgm-transpallet.png");

}

.categoria:nth-child(4) {

    background-image: url("img/rgm-stoccatore.png");

}

/* NASCONDE L'IMMAGINE DENTRO LA CARD

   perché la stessa immagine viene usata come sfondo */

.categoria-img {

    display: none;

}

/* OVERLAY SCURO */

.categoria::before {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(

        to top,

        rgba(0, 0, 0, 0.85),

        rgba(0, 0, 0, 0.15)

    );

    z-index: 1;

}

/* TESTI SOPRA LO SFONDO */

.categoria h3,

.categoria p,

.categoria a {

    position: relative;

    z-index: 2;

}

/* TITOLO */

.categoria h3 {

    margin: 0 0 12px;

    font-size: 1.45rem;

    color: #fff;

}

/* DESCRIZIONE */

.categoria p {

    margin: 0 0 25px;

    color: #eee;

    line-height: 1.5;

}

/* LINK */

.categoria a {

    color: #e5007d;

    font-weight: 700;

    text-decoration: none;

    font-size: 1rem;

}

.categoria a:hover {

    color: #fff;

}

/* =========================

   RESPONSIVE

========================= */

@media (max-width: 900px) {

    .categorie-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 600px) {

    .categorie {

        padding: 70px 20px;

    }

    .categorie h2 {

        margin-bottom: 40px;

    }

    .categorie-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }

    .categoria {

        min-height: 400px;

    }

}

/* =========================================================

   MOBILE

   ========================================================= */

@media (max-width: 900px) {

    .noleggio-banner {

        grid-template-columns: 1fr;

        gap: 28px;

        min-height: auto;

        padding: 70px 8%;

    }

    .noleggio-label {

        padding-top: 0;

    }

    .noleggio-content h2 {

        font-size: clamp(2.8rem, 8vw, 4.5rem);

    }

    .noleggio-action {

        justify-content: flex-start;

    }

}

@media (max-width: 600px) {

    .noleggio-banner {

        padding: 60px 25px;

    }

    .noleggio-content h2 {

        font-size: 2.8rem;

        letter-spacing: -2px;

    }

    .noleggio-btn {

        width: auto;

    }

}

/* =========================================================

   PERCHÉ RGM

   ========================================================= */

.perche {

    background: #fff;

    padding: 130px 8%;

}

.perche-header {

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 1.8fr;

    gap: 100px;

    align-items: start;

}

.perche-intro {

    max-width: 430px;

}

.perche .section-label {

    margin-bottom: 20px;

}

.perche-intro h2 {

    margin: 0 0 30px;

    font-size: clamp(2.5rem, 4vw, 4.5rem);

    line-height: 1.02;

    letter-spacing: -0.04em;

    color: #111;

}

.perche-description {

    max-width: 390px;

    margin: 0;

    color: #666;

    font-size: 1.05rem;

    line-height: 1.7;

}

.perche-values {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px;

    padding-top: 55px;

}

.perche-value {

    position: relative;

    padding-top: 22px;

    border-top: 2px solid #e5007d;

}

.value-number {

    display: block;

    margin-bottom: 35px;

    color: #e5007d;

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: .08em;

}

.perche-value h3 {

    margin: 0 0 18px;

    color: #111;

    font-size: 1.1rem;

    letter-spacing: .02em;

}

.perche-value p {

    margin: 0;

    color: #777;

    font-size: .95rem;

    line-height: 1.65;

}

/* =========================================================

   PERCHÉ RGM - MOBILE

   ========================================================= */

@media (max-width: 850px) {

    .perche {

        padding: 90px 7%;

    }

    .perche-header {

        grid-template-columns: 1fr;

        gap: 55px;

    }

    .perche-values {

        padding-top: 0;

    }

}

@media (max-width: 600px) {

    .perche {

        padding: 75px 6%;

    }

    .perche-intro h2 {

        font-size: 2.6rem;

    }

    .perche-values {

        grid-template-columns: 1fr;

        gap: 40px;

    }

    .perche-value {

        padding-top: 18px;

    }

    .value-number {

        margin-bottom: 20px;

    }

}

/* =========================================================

   CONTATTI

   ========================================================= */

.contatti {

    background: #111;

    color: #fff;

    padding: 130px 8%;

}

.contatti-inner {

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 1.35fr;

    gap: 110px;

    align-items: start;

}

.contatti-intro {

    max-width: 500px;

}

.contatti .section-label {

    color: #e5007d;

    margin-bottom: 22px;

}

.contatti-intro h2 {

    margin: 0 0 30px;

    font-size: clamp(3rem, 5vw, 5.5rem);

    line-height: .98;

    letter-spacing: -0.05em;

    color: #fff;

}

.contatti-intro p:not(.section-label) {

    max-width: 450px;

    margin: 0;

    color: #aaa;

    font-size: 1.05rem;

    line-height: 1.7;

}

/* CONTATTI LINK */

.contatti-links {

    display: flex;

    flex-direction: column;

}

.contatto-item {

    min-height: 115px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 25px 5px;

    color: #fff;

    text-decoration: none;

    border-top: 1px solid #333;

    transition:

        color .2s,

        padding .25s,

        border-color .2s;

}

.contatto-item:last-child {

    border-bottom: 1px solid #333;

}

.contatto-item:hover {

    color: #e5007d;

    padding-left: 15px;

    border-color: #e5007d;

}

.contatto-label {

    display: block;

    margin-bottom: 10px;

    color: #e5007d;

    font-size: .72rem;

    font-weight: 800;

    letter-spacing: .16em;

}

.contatto-item strong {

    display: block;

    font-size: clamp(1.25rem, 2vw, 1.7rem);

    font-weight: 700;

}

.contatto-arrow {

    font-size: 2rem;

    font-weight: 300;

    transition: transform .2s;

}

.contatto-item:hover .contatto-arrow {

    transform: translateX(8px);

}

/* =========================================================

   CONTATTI - MOBILE

   ========================================================= */

@media (max-width: 850px) {

    .contatti {

        padding: 90px 7%;

    }

    .contatti-inner {

        grid-template-columns: 1fr;

        gap: 65px;

    }

    .contatti-intro h2 {

        font-size: 3.5rem;

    }

}

@media (max-width: 600px) {

    .contatti {

        padding: 75px 6%;

    }

    .contatti-intro h2 {

        font-size: 2.8rem;

    }

    .contatto-item {

        min-height: 95px;

    }

    .contatto-item strong {

        font-size: 1.15rem;

    }

    .contatto-arrow {

        font-size: 1.6rem;

    }

}

/* =========================

   FOOTER

========================= */

footer {

    padding: 50px 8%;

    background: #111111;

    color: white;

    display: flex;

    justify-content: space-between;

}

footer p {

    color: #888888;

    margin-top: 8px;

}

/* =========================

   MOBILE

========================= */

@media (max-width: 900px) {

    nav {

        display: none;

    }

    .btn-header {

        display: none;

    }

    .categorie-grid,

    .vantaggi,

    .servizi {

        grid-template-columns: 1fr;

    }

    .servizio {

        padding: 60px 8%;

    }

    .categorie h2,

    .perche h2,

    .contatti h2 {

        font-size: 45px;

    }

    footer {

        flex-direction: column;

        gap: 30px;

    }

}

/* =========================================================

   MOBILE

   ========================================================= */

@media (max-width: 900px) {

    .ricambi-banner {

        grid-template-columns: 1fr;

        gap: 35px;

        min-height: auto;

        padding: 70px 8%;

    }

    .ricambi-intro {

        padding-top: 0;

    }

    .ricambi-intro p {

        margin-top: 25px;

    }

    .ricambi-content {

        text-align: left;

    }

    .ricambi-content h2 {

        font-size: clamp(2.7rem, 8vw, 4rem);

    }

    .ricambi-action {

        justify-content: flex-start;

    }

}

@media (max-width: 600px) {

    .ricambi-banner {

        padding: 60px 25px;

    }

    .ricambi-label {

        font-size: 1.1rem;

    }

    .ricambi-content h2 {

        font-size: 2.7rem;

        letter-spacing: -2px;

    }

}

/* =========================

   FOOTER RGM

========================= */

.footer {

    background: #111111;

    color: #ffffff;

    padding: 70px 8% 25px;

}

.footer-main {

    display: grid;

    grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr;

    gap: 45px;

    padding-bottom: 55px;

}

.footer-brand img {

    display: block;

    width: 240px;

    max-width: 100%;

    height: auto;

    background: #ffffff;

    border-radius: 4px;

    margin-bottom: 20px;

}

.footer-brand p,

.footer-column p {

    color: #aaaaaa;

    font-size: 14px;

    line-height: 1.8;

}

.footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 13px;

}

.footer-column h3 {

    font-size: 13px;

    letter-spacing: 2px;

    margin-bottom: 10px;

    color: #e52364;

}

.footer-column a,

.footer-bottom a {

    color: #cccccc;

    font-size: 14px;

    text-decoration: none;

    transition: color 0.3s;

    overflow-wrap: anywhere;

}

.footer-column a:hover,

.footer-bottom a:hover {

    color: #e52364;

}

.footer-bottom {

    border-top: 1px solid #333333;

    padding-top: 25px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

}

.footer-bottom p {

    color: #888888;

    font-size: 12px;

}

/* TABLET */

@media (max-width: 1000px) {

    .footer-main {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}

/* SMARTPHONE */

@media (max-width: 600px) {

    .footer {

        padding: 50px 6% 25px;

    }

    .footer-main {

        grid-template-columns: 1fr;

        gap: 35px;

    }

    .footer-brand img {

        width: 220px;

    }

    .footer-bottom {

        flex-direction: column;

        align-items: flex-start;

    }

}

.btn {

    display: inline-block;

    background: #e5007d;

    color: #fff;

    text-decoration: none;

    padding: 14px 28px;

    border-radius: 6px;

    font-weight: 600;

    transition: background .2s, transform .2s;

}

.btn:hover {

    background: #c9006d;

    color: #fff;

    text-decoration: none;

    transform: translateY(-2px);

}

@media (max-width: 900px) {

    .categorie-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 600px) {

    .categorie {

        padding: 70px 20px;

    }

    .categorie h2 {

        margin-bottom: 40px;

    }

    .categorie-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }

    .categoria {

        min-height: 400px;

    }

}

/* =========================================================

   RICAMBI + NOLEGGIO

   ========================================================= */

.ricambi-banner,

.noleggio-banner {

    position: relative;

    width: 100%;

    min-height: 520px;

    padding: 90px 8%;

    box-sizing: border-box;

    display: grid;

    grid-template-columns: 1.05fr 2fr 1fr;

    align-items: center;

    gap: 55px;

    overflow: hidden;

}

/* =========================================================

   ELEMENTI COMUNI

   ========================================================= */

.ricambi-side,

.noleggio-side,

.ricambi-main,

.noleggio-main,

.ricambi-action,

.noleggio-action {

    position: relative;

    z-index: 2;

}

.banner-label {

    display: block;

    margin-bottom: 35px;

    color: #fff;

    font-size: 1.15rem;

    font-weight: 800;

    letter-spacing: .18em;

}

/* =========================================================

   RICAMBI

   ========================================================= */

.ricambi-banner {

    background: #111;

    color: #fff;

}

.ricambi-side h3 {

    margin: 0;

    max-width: 300px;

    color: #fff;

    font-size: clamp(1.6rem, 2vw, 2rem);

    line-height: 1.08;

    letter-spacing: -.5px;

}

.ricambi-main h2 {

    margin: 0;

    max-width: 760px;

    color: #fff;

    font-size: clamp(2.6rem, 3.7vw, 4rem);

    line-height: .98;

    letter-spacing: -2.5px;

}

.ricambi-action,

.noleggio-action {

    display: flex;

    justify-content: flex-end;

    align-items: center;

}

.ricambi-btn {

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    padding: 16px 27px !important;

    background: #e5007d !important;

    color: #fff !important;

    border: none !important;

    border-radius: 6px !important;

    font-size: .88rem !important;

    font-weight: 800 !important;

    text-decoration: none !important;

    white-space: nowrap;

    transition: transform .2s ease, box-shadow .2s ease !important;

}

.ricambi-btn:hover {

    background: #e5007d !important;

    color: #fff !important;

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(229, 0, 125, .25);

}

/* =========================================================

   NOLEGGIO

   ========================================================= */

.noleggio-banner {

    background: #e5007d;

    color: #fff;

}

.noleggio-side h3 {

    margin: 0;

    max-width: 300px;

    color: #fff;

    font-size: clamp(1.6rem, 2vw, 2rem);

    line-height: 1.08;

    letter-spacing: -.5px;

}

.noleggio-main h2 {

    margin: 0;

    max-width: 760px;

    color: #fff;

    font-size: clamp(2.6rem, 3.7vw, 4rem);

    line-height: .98;

    letter-spacing: -2.5px;

}

.noleggio-btn {

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    padding: 16px 27px !important;

    background: #111 !important;

    color: #fff !important;

    border: none !important;

    border-radius: 6px !important;

    font-size: .88rem !important;

    font-weight: 800 !important;

    text-decoration: none !important;

    white-space: nowrap;

    transition: transform .2s ease, box-shadow .2s ease !important;

}

.noleggio-btn:hover {

    background: #111 !important;

    color: #fff !important;

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);

}

/* =========================================================

   SCRITTA GIGANTE DI SFONDO

   ========================================================= */

.banner-watermark {

    position: absolute;

    z-index: 1;

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);

    font-size: clamp(10rem, 18vw, 20rem);

    font-weight: 900;

    line-height: 1;

    white-space: nowrap;

    pointer-events: none;

    user-select: none;

}

.ricambi-banner .banner-watermark {

    color: rgba(255, 255, 255, .035);

}

.noleggio-banner .banner-watermark {

    color: rgba(0, 0, 0, .055);

}

/* =========================================================

   TABLET

   ========================================================= */

@media (max-width: 900px) {

    .ricambi-banner,

    .noleggio-banner {

        min-height: auto;

        padding: 80px 8%;

        grid-template-columns: 1fr;

        gap: 45px;

    }

    .ricambi-main h2,

    .noleggio-main h2 {

        font-size: clamp(2.8rem, 8vw, 4rem);

    }

    .ricambi-action,

    .noleggio-action {

        justify-content: flex-start;

    }

    .banner-watermark {

        font-size: 20vw;

    }

}

/* =========================================================
   CORREZIONE HOME - MOBILE
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 600px) {

    header {
        width: 100%;
        min-height: 95px;
        padding: 8px 20px;
    }

    header .logo {
        width: 220px;
        max-width: 70vw;
        height: 78px;
    }

    .hero {
        width: 100%;
        max-width: 100%;
        min-height: 680px;
        padding: 70px 20px;
        background-position: center center;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .sottotitolo {
        font-size: 11px;
        letter-spacing: 3px;
        margin-bottom: 18px;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        font-size: clamp(38px, 10.5vw, 58px);
        line-height: 0.96;
        letter-spacing: -2.5px;
        margin-bottom: 28px;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .descrizione {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 30px;
    }

    .hero-buttons {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        gap: 12px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        flex: 1 1 0;
        min-width: 0;
        padding: 15px 10px;
        text-align: center;
        white-space: nowrap;
        font-size: 12px;
    }
}

/* =========================================================
   RIDIMENSIONAMENTO IMMAGINI CARD HOME
   ========================================================= */

.categoria {
    background-size: 88% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #111;
}

/* Carrello elettrico */
.categoria:nth-child(1) {
    background-size: 88% auto;
}

/* Carrello diesel */
.categoria:nth-child(2) {
    background-size: 90% auto;
}

/* Transpallet */
.categoria:nth-child(3) {
    background-size: 88% auto;
}

/* Stoccatore */
.categoria:nth-child(4) {
    background-size: 88% auto;
}