/* =========================================================
   E-COMMERCE MAGENTO
   Studio Graffiti
   File: style-sg-servizi-magento.css
========================================================= */


/* =========================================================
   BASE
========================================================= */

.sg-service-modern {
    --sg-orange: #dc2d17;
    --sg-dark: #171717;
    --sg-dark-2: #101010;
    --sg-card: #1f1f1f;
    --sg-soft: rgba(220, 45, 23, 0.14);

    position: relative;
    background-color: var(--sg-dark);
    color: #ffffff;
    overflow: hidden;
}

.sg-service-modern *,
.sg-service-modern *::before,
.sg-service-modern *::after {
    box-sizing: border-box;
}

.sg-service-modern a {
    text-decoration: none;
}


/* =========================================================
   HERO
========================================================= */

.sg-service-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at top right,
            rgba(220, 45, 23, 0.30),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(255, 255, 255, 0.07),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #171717 0%,
            #101010 100%
        );
    text-align: left !important;
}

.sg-service-hero::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background-color: var(--sg-orange);
    opacity: 0.18;
    pointer-events: none;
}

.sg-service-hero::after {
    content: "";
    position: absolute;
    bottom: -200px;
    left: -180px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.sg-service-hero .container {
    position: relative;
    z-index: 2;
    text-align: left !important;
}

.sg-back-wrapper {
    margin-bottom: 34px;
}

.sg-service-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--sg-orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sg-service-label::before {
    content: "";
    width: 42px;
    height: 2px;
    background-color: var(--sg-orange);
}

.sg-service-hero h1 {
    max-width: 1200px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(52px, 8vw, 118px);
    line-height: 0.86;
    letter-spacing: -0.075em;
    font-weight: 900;
}

.sg-service-hero h1 span {
    display: block;
    color: var(--sg-orange);
}

.sg-service-hero-text {
    max-width: 870px;
    margin: 34px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 21px;
    line-height: 1.62;
    font-weight: 700;
}

.sg-service-hero-subtext {
    max-width: 850px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 17px;
    line-height: 1.7;
}

.sg-service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}


/* =========================================================
   BOTTONI
========================================================= */

.sg-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 18px 30px;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.sg-service-btn-primary {
    background-color: var(--sg-orange);
    color: #ffffff !important;
}

.sg-service-btn-primary:hover {
    background-color: #ffffff;
    color: #111111 !important;
    transform: translateY(-3px);
}

.sg-service-btn-light {
    background-color: #ffffff;
    color: #111111 !important;
}

.sg-service-btn-light:hover {
    background-color: var(--sg-orange);
    color: #ffffff !important;
    transform: translateY(-3px);
}


/* =========================================================
   TRUST
========================================================= */

.sg-service-trust-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
}

.sg-service-trust-card {
    min-height: 132px;
    padding: 23px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.055);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.sg-service-trust-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 45, 23, 0.50);
}

.sg-service-trust-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--sg-orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sg-service-trust-card strong {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.13;
    font-weight: 900;
}


/* =========================================================
   IMMAGINE
========================================================= */

.sg-service-image-section {
    padding: 70px 0;
    background-color: #171717;
}

.sg-service-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 42px;
    background-color: #111111;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.35);
}

.sg-service-image-card picture,
.sg-service-image-card img {
    display: block;
    width: 100%;
}

.sg-service-image-card img {
    min-height: 380px;
    object-fit: cover;
}

.sg-service-image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.50),
            rgba(0, 0, 0, 0.04) 58%,
            transparent
        );
}

.sg-magento-image-badge {
    position: absolute;
    z-index: 3;
    bottom: 34px;
    left: 34px;
    max-width: 450px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    background: rgba(17, 17, 17, 0.80);
    backdrop-filter: blur(14px);
}

.sg-magento-image-badge span {
    display: block;
    margin-bottom: 10px;
    color: var(--sg-orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.sg-magento-image-badge strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
}


/* =========================================================
   CONTENUTO
========================================================= */

.sg-service-content-section {
    padding: 96px 0;
    background-color: #ffffff;
    color: #171717;
}

.sg-service-content-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 80px;
    align-items: start;
}

.sg-service-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--sg-orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sg-service-title {
    margin: 0;
    color: #111111;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.sg-service-title span {
    color: var(--sg-orange);
}

.sg-service-lead {
    margin: 0 0 24px;
    color: #292929;
    font-size: 22px;
    line-height: 1.55;
    font-weight: 700;
}

.sg-service-copy {
    margin: 0 0 18px;
    color: #555555;
    font-size: 18px;
    line-height: 1.75;
}

.sg-magento-content-title {
    margin: 30px 0 8px;
    color: #111111;
    font-size: clamp(29px, 3vw, 43px);
    line-height: 1.03;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.sg-magento-highlight-box {
    margin: 32px 0;
    padding: 34px;
    border: 1px solid rgba(220, 45, 23, 0.26);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at top right,
            rgba(220, 45, 23, 0.18),
            transparent 38%
        ),
        #111111;
}

.sg-magento-highlight-box > span {
    display: block;
    margin-bottom: 15px;
    color: var(--sg-orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.sg-magento-highlight-box h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(28px, 3.4vw, 47px);
    line-height: 1;
    font-weight: 900;
}

.sg-magento-highlight-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   STICKY
========================================================= */

.sg-magento-sticky-section,
.sg-magento-sticky-section .container,
.sg-magento-sticky-section .sg-service-content-grid {
    overflow: visible !important;
}

@media (min-width: 992px) {

    .sg-magento-sticky-section .sg-service-content-grid {
        grid-template-columns:
            minmax(0, 0.95fr)
            minmax(0, 1.05fr) !important;
        gap: clamp(40px, 6vw, 90px) !important;
    }

    .sg-magento-sticky-section
    .sg-service-content-grid
    > div:first-child {
        position: sticky !important;
        top: 120px !important;
        align-self: start !important;
        height: fit-content !important;
    }

    .sg-magento-sticky-section
    .sg-service-content-grid
    > div:last-child {
        min-height: 1000px;
    }
}


/* =========================================================
   TITOLI SECTION
========================================================= */

.sg-service-section-head {
    max-width: 900px;
    margin-bottom: 50px;
}

.sg-service-section-head.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.sg-service-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 5.4vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.sg-service-section-head h2 span {
    color: var(--sg-orange);
}

.sg-service-section-head p {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   FEATURE
========================================================= */

.sg-service-feature-section {
    padding: 100px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(220, 45, 23, 0.14),
            transparent 32%
        ),
        #101010;
}

.sg-service-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sg-service-feature-card {
    min-height: 290px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.055);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.sg-service-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 45, 23, 0.48);
}

.sg-service-feature-card .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    border-radius: 50%;
    background-color: var(--sg-soft);
    color: var(--sg-orange);
    font-size: 14px;
    font-weight: 900;
}

.sg-service-feature-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
}

.sg-service-feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   B2B E B2C
========================================================= */

.sg-magento-business-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.sg-magento-dark-heading {
    color: #111111 !important;
}

.sg-magento-dark-copy {
    color: #555555 !important;
}

.sg-magento-business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sg-magento-business-card {
    padding: 40px;
    border-radius: 36px;
    background: #111111;
}

.sg-magento-business-card-red {
    background: var(--sg-orange);
}

.sg-magento-card-label {
    display: block;
    margin-bottom: 18px;
    color: var(--sg-orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.sg-magento-business-card-red .sg-magento-card-label {
    color: #ffffff;
}

.sg-magento-business-card h3 {
    margin: 0 0 26px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 57px);
    line-height: 0.97;
    font-weight: 900;
}

.sg-magento-business-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-magento-business-card li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 27px;
    color: rgba(255, 255, 255, 0.79);
    font-size: 16px;
}

.sg-magento-business-card li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--sg-orange);
}

.sg-magento-business-card-red li::before {
    background-color: #ffffff;
}


/* =========================================================
   INTEGRAZIONI
========================================================= */

.sg-magento-integrations-section {
    padding: 100px 0;
    background-color: #111111;
}

.sg-magento-integrations-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 20px;
}

.sg-magento-integrations-main {
    padding: 44px;
    border: 1px solid rgba(220, 45, 23, 0.45);
    border-radius: 36px;
    background:
        radial-gradient(
            circle at top right,
            rgba(220, 45, 23, 0.25),
            transparent 38%
        ),
        rgba(255, 255, 255, 0.045);
}

.sg-magento-integrations-main h3 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 0.95;
    font-weight: 900;
}

.sg-magento-integrations-main p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.7;
}

.sg-magento-integrations-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sg-magento-mini-card {
    min-height: 205px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.055);
}

.sg-magento-mini-card > span {
    display: block;
    margin-bottom: 22px;
    color: var(--sg-orange);
    font-size: 14px;
    font-weight: 900;
}

.sg-magento-mini-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
}

.sg-magento-mini-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   MULTISTORE
========================================================= */

.sg-magento-multistore-section {
    padding: 100px 0;
    background: var(--sg-orange);
}

.sg-magento-multistore-section .sg-service-kicker {
    color: #ffffff;
}

.sg-magento-multistore-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.sg-magento-multistore-grid h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 76px);
    line-height: 0.94;
    font-weight: 900;
}

.sg-magento-multistore-grid h2 span {
    color: #111111;
}

.sg-magento-multistore-grid p,
.sg-magento-multistore-grid li {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   PROCESSO
========================================================= */

.sg-service-process-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.sg-process-heading {
    color: #111111 !important;
}

.sg-process-copy {
    color: #555555 !important;
}

.sg-service-process-grid {
    display: grid;
    gap: 16px;
}

.sg-magento-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg-service-process-card {
    min-height: 250px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 30px;
    background-color: #f5f5f5;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.sg-service-process-card:hover {
    transform: translateY(-5px);
    background-color: #111111;
}

.sg-service-process-card span {
    display: block;
    margin-bottom: 20px;
    color: var(--sg-orange);
    font-weight: 900;
}

.sg-service-process-card h3 {
    margin: 0 0 12px;
    color: #111111;
    font-size: 24px;
    font-weight: 900;
}

.sg-service-process-card p {
    color: #5b5b5b;
    font-size: 15px;
    line-height: 1.7;
}

.sg-service-process-card:hover h3 {
    color: #ffffff;
}

.sg-service-process-card:hover p {
    color: rgba(255, 255, 255, 0.70);
}


/* =========================================================
   PERFORMANCE
========================================================= */

.sg-magento-performance-section {
    padding: 100px 0;
    background-color: #111111;
}

.sg-magento-performance-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 58px;
    border: 1px solid rgba(220, 45, 23, 0.48);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.04);
}

.sg-magento-performance-box h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 76px);
    line-height: 0.94;
    font-weight: 900;
}

.sg-magento-performance-box h2 span {
    color: var(--sg-orange);
}

.sg-magento-performance-box p,
.sg-magento-performance-box li {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   MARKETING
========================================================= */

.sg-magento-marketing-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.sg-magento-marketing-grid {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 80px;
}

.sg-magento-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 16px;
    padding: 15px 25px;
    border-radius: 999px;
    background-color: var(--sg-orange);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.sg-magento-inline-link:hover {
    background-color: #111111;
}


/* =========================================================
   OUTPUT E VALORE
========================================================= */

.sg-service-output-section {
    padding: 100px 0;
    background:
        radial-gradient(
            circle at bottom left,
            rgba(220, 45, 23, 0.24),
            transparent 34%
        ),
        #111111;
}

.sg-service-output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sg-service-output-card {
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.055);
}

.sg-service-output-card h3 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
}

.sg-service-output-card p,
.sg-service-output-card li {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.7;
}

.sg-magento-value-section {
    padding: 100px 0;
    background-color: #171717;
}

.sg-magento-value-box {
    max-width: 1120px;
    margin: 0 auto;
    padding: 60px;
    border: 1px solid rgba(220, 45, 23, 0.48);
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.045);
}

.sg-magento-value-box h2 {
    margin: 0 0 28px;
    color: #ffffff;
    font-size: clamp(44px, 5.7vw, 84px);
    line-height: 0.91;
    font-weight: 900;
}

.sg-magento-value-box h2 span {
    color: var(--sg-orange);
}

.sg-magento-value-box p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 19px;
    line-height: 1.72;
}


/* =========================================================
   FAQ
========================================================= */

.sg-service-faq-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.sg-faq-heading {
    color: #111111 !important;
}

.sg-faq-copy {
    color: #555555 !important;
}

.sg-service-faq-section .accordion-item {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    background-color: #f7f7f7;
}

.sg-service-faq-section .accordion-button {
    padding: 24px 28px;
    color: #111111;
    background-color: #f7f7f7;
    box-shadow: none;
    font-size: 18px;
    font-weight: 900;
}

.sg-service-faq-section .accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #111111;
}

.sg-service-faq-section .accordion-body {
    padding: 0 28px 26px;
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.sg-service-cta-section {
    padding: 100px 0;
    background: var(--sg-orange);
}

.sg-service-cta-box {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.sg-service-cta-box h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 88px);
    line-height: 0.92;
    font-weight: 900;
}

.sg-service-cta-box p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.6;
}

.sg-service-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.sg-service-cta-actions .sg-service-btn-primary {
    background-color: #111111;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {

    .sg-service-trust-row,
    .sg-service-feature-grid,
    .sg-magento-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sg-service-content-grid,
    .sg-magento-integrations-grid,
    .sg-magento-multistore-grid,
    .sg-magento-performance-box,
    .sg-magento-marketing-grid,
    .sg-service-output-grid,
    .sg-service-cta-box {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .sg-service-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {

    .sg-service-hero {
        padding: 120px 0 64px;
    }

    .sg-magento-sticky-section
    .sg-service-content-grid
    > div:first-child {
        position: static !important;
    }

    .sg-magento-business-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {

    .sg-service-hero {
        padding: 105px 0 54px;
    }

    .sg-service-hero h1 {
        font-size: clamp(44px, 15vw, 68px);
        line-height: 0.89;
    }

    .sg-service-hero-text {
        font-size: 18px;
    }

    .sg-service-hero-actions,
    .sg-service-cta-actions {
        flex-direction: column;
    }

    .sg-service-btn {
        width: 100%;
    }

    .sg-service-trust-row,
    .sg-service-feature-grid,
    .sg-magento-integrations-list,
    .sg-magento-process-grid,
    .sg-service-output-grid {
        grid-template-columns: 1fr;
    }

    .sg-service-content-section,
    .sg-service-feature-section,
    .sg-magento-business-section,
    .sg-magento-integrations-section,
    .sg-magento-multistore-section,
    .sg-service-process-section,
    .sg-magento-performance-section,
    .sg-magento-marketing-section,
    .sg-service-output-section,
    .sg-magento-value-section,
    .sg-service-faq-section,
    .sg-service-cta-section {
        padding: 72px 0;
    }

    .sg-service-image-card {
        border-radius: 28px;
    }

    .sg-service-image-card img {
        min-height: 480px;
    }

    .sg-magento-image-badge {
        right: 20px;
        bottom: 20px;
        left: 20px;
        max-width: none;
    }

    .sg-magento-integrations-main,
    .sg-magento-business-card,
    .sg-magento-performance-box,
    .sg-service-output-card,
    .sg-magento-value-box {
        padding: 30px;
        border-radius: 28px;
    }
}

@media (max-width: 420px) {

    .sg-service-hero h1 {
        font-size: 43px;
    }

    .sg-service-title,
    .sg-service-section-head h2 {
        font-size: 38px;
    }

    .sg-magento-highlight-box,
    .sg-magento-integrations-main,
    .sg-magento-business-card,
    .sg-magento-performance-box,
    .sg-service-output-card,
    .sg-magento-value-box {
        padding: 25px;
    }

    .sg-magento-content-title {
        font-size: 30px;
    }

    .sg-magento-highlight-box h3,
    .sg-magento-integrations-main h3,
    .sg-magento-business-card h3,
    .sg-magento-value-box h2 {
        font-size: 35px;
    }
}

/* =========================================================
   HERO MAGENTO CON LOGO
========================================================= */

.sg-magento-hero-with-logo .sg-magento-hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(320px, .68fr);
    gap: clamp(45px, 6vw, 95px);
    align-items: center;
}


/* =========================================================
   COLONNA CONTENUTO
========================================================= */

.sg-magento-hero-main {
    min-width: 0;
}

.sg-magento-hero-with-logo .sg-magento-hero-main h1 {
    max-width: 950px;
}


/* =========================================================
   CARD LOGO
========================================================= */

.sg-magento-hero-logo-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 1px;
    border-radius: 40px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .18),
            rgba(220, 45, 23, .55),
            rgba(255, 255, 255, .06)
        );
    box-shadow:
        0 35px 90px rgba(0, 0, 0, .38),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

.sg-magento-hero-logo-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    padding: 42px 38px;
    border-radius: 39px;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(220, 45, 23, .30),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .085),
            rgba(255, 255, 255, .025)
        ),
        #151515;
}

.sg-magento-hero-logo-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #dc2d17;
    opacity: .20;
    filter: blur(18px);
    pointer-events: none;
}


/* =========================================================
   ETICHETTA
========================================================= */

.sg-magento-logo-small-title {
    display: block;
    margin-bottom: 27px;
    color: #dc2d17;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
}


/* =========================================================
   LOGO
========================================================= */

.sg-magento-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    margin-bottom: 34px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 29px;
    background: #ffffff;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .85);
}

.sg-magento-hero-logo img {
    display: block;
    width: 100%;
    max-width: 330px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}


/* =========================================================
   TESTO CARD
========================================================= */

.sg-magento-hero-logo-card h2 {
    margin: 0 0 17px;
    color: #ffffff;
    font-size: clamp(28px, 2.5vw, 40px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.045em;
}

.sg-magento-hero-logo-card h2 strong {
    display: block;
    color: #dc2d17;
    font-weight: 900;
}

.sg-magento-hero-logo-card p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   TAG
========================================================= */

.sg-magento-logo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.sg-magento-logo-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .80);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .055em;
}


/* =========================================================
   TRUST ROW
========================================================= */

.sg-magento-hero-with-logo .sg-service-trust-row {
    position: relative;
    z-index: 2;
    margin-top: 65px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199px) {

    .sg-magento-hero-with-logo .sg-magento-hero-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
        gap: 42px;
    }

    .sg-magento-hero-logo-inner {
        min-height: 480px;
        padding: 35px 30px;
    }

    .sg-magento-hero-logo {
        min-height: 140px;
        padding: 24px;
    }
}


/* =========================================================
   TABLET VERTICALE
========================================================= */

@media (max-width: 991px) {

    .sg-magento-hero-with-logo .sg-magento-hero-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .sg-magento-hero-logo-card {
        max-width: 680px;
    }

    .sg-magento-hero-logo-inner {
        min-height: auto;
    }

    .sg-magento-hero-logo {
        min-height: 155px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .sg-magento-hero-with-logo .sg-magento-hero-layout {
        gap: 36px;
    }

    .sg-magento-hero-logo-card {
        border-radius: 30px;
    }

    .sg-magento-hero-logo-inner {
        padding: 28px 24px;
        border-radius: 29px;
    }

    .sg-magento-hero-logo {
        min-height: 130px;
        margin-bottom: 27px;
        padding: 22px;
        border-radius: 22px;
    }

    .sg-magento-hero-logo img {
        max-width: 270px;
        max-height: 95px;
    }

    .sg-magento-hero-logo-card h2 {
        font-size: 30px;
    }

    .sg-magento-hero-with-logo .sg-service-trust-row {
        margin-top: 48px;
    }
}


/* =========================================================
   SMARTPHONE PICCOLI
========================================================= */

@media (max-width: 420px) {

    .sg-magento-hero-logo-inner {
        padding: 24px 20px;
    }

    .sg-magento-hero-logo {
        min-height: 115px;
        padding: 18px;
    }

    .sg-magento-hero-logo img {
        max-width: 230px;
        max-height: 82px;
    }

    .sg-magento-hero-logo-card h2 {
        font-size: 27px;
    }

    .sg-magento-logo-tags span {
        padding: 9px 12px;
        font-size: 10px;
    }
}