.ct-mats {
    --mats-blue: #52a4ff;
    --mats-green: #97c709;
    overflow: hidden;
}

.ct-mats em { font-style: normal; color: var(--mats-green); }
.ct-mats__hero { position: relative; overflow: hidden; background: #fff; }
.ct-mats__hero-grid { position: relative; display: grid; min-height: 730px; grid-template-columns: 1fr; align-items: center; padding-top: 110px; padding-bottom: 45px; }
.ct-mats__hero-copy { position: relative; z-index: 1; max-width: 660px; }
.ct-mats h1 { max-width: 660px; margin-bottom: 43px; font-size: clamp(2.6rem, 3.6vw, 3.25rem); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.ct-mats h1 em { font-style: normal; }
.ct-mats__lead { margin-bottom: 37px; color: #262c31 !important; font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important; font-weight: 700; line-height: 1.3 !important; }
.ct-mats__hero-copy > p:not(.ct-mats__lead, .ct-mats__breadcrumb) { max-width: 610px; }
.ct-mats__hero-image { position: absolute; top: 0; right: -80px; width: min(53vw, 760px); max-width: none; height: auto; filter: none; }
.ct-mats__benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 650px; margin: 39px 0 41px; }
.ct-mats__benefits > div { display: flex; align-items: flex-start; gap: 14px; }
.ct-mats__benefit-icon { display: block; width: 54px; height: 54px; flex: 0 0 54px; object-fit: contain; }
.ct-mats__benefits p { margin: 0; font-size: .95rem; line-height: 1.34; }
.ct-mats__benefits strong, .ct-mats__benefits p span { display: block; }
.ct-mats__benefits strong { margin-bottom: 5px; color: #77a200; font-size: 1.04rem; }
.ct-mats__hero .button { margin-top: 0; }

.ct-mats__sorb { padding: 55px 0; background: #f5f6f8; }
.ct-mats__sorb-grid { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(35px, 5vw, 90px); }
.ct-mats__sorb-visual { display: grid; place-items: center; }
.ct-mats__sorb-visual img { width: 100%; height: auto; filter: drop-shadow(0 15px 16px rgba(28, 34, 42, .17)); }
.ct-mats__eyebrow { margin-bottom: 13px; color: #4a88c0 !important; font-size: .85rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ct-mats__sorb h2 { margin-bottom: 18px; font-size: clamp(2.8rem, 3.8vw, 3.55rem); font-weight: 700; }
.ct-mats__sorb h3, .ct-mats__doormats h3 { max-width: 620px; margin-bottom: 21px; font-size: clamp(1.45rem, 2vw, 2.15rem); font-weight: 500; line-height: 1.2; }
.ct-mats__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; }
.ct-mats__facts div { min-height: 78px; padding: 4px 0 0 62px; background-repeat: no-repeat; background-position: 0 2px; background-size: 52px 52px; }
.ct-mats__fact--size { background-image: url('../icons/tappeti/dimensioni.svg'); }
.ct-mats__fact--capacity { background-image: url('../icons/tappeti/capacita.svg'); }
.ct-mats__fact--reuse { background-image: url('../icons/tappeti/riutilizzabile.svg'); }
.ct-mats__facts dt { margin-bottom: 7px; color: #77a200; font-size: 1.12rem; font-weight: 700; }
.ct-mats__facts dd { margin: 0; color: #4b5359; font-size: .92rem; line-height: 1.42; }

.ct-mats__layers { overflow: hidden; background: #fff; }
.ct-mats__layers-grid { position: relative; min-height: 560px; }
.ct-mats__visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ct-mats__layers-copy { position: relative; z-index: 2; padding: 61px 0 45px 70px; }
.ct-mats__layers ol { display: grid; gap: 53px; margin: 0; padding: 0; list-style: none; }
.ct-mats__detail { --detail-color: var(--mats-blue); position: relative; }
.ct-mats__detail--inner { --detail-color: var(--mats-green); }
.ct-mats__detail-title { display: flex; width: min(54vw, 775px); align-items: center; }
.ct-mats__detail--inner .ct-mats__detail-title { width: min(47vw, 677px); }
.ct-mats__detail--stitches .ct-mats__detail-title { width: min(calc(46vw - 28px), 634px); }
.ct-mats__layers h3 { flex: 0 0 auto; margin: 0; font-size: clamp(1.45rem, 2.05vw, 1.85rem); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.ct-mats__layers h3 em { font-style: normal; }
.ct-mats__detail-line { position: relative; z-index: 2; height: 2px; flex: 1 1 auto; margin-left: 18px; background: var(--detail-color); }
.ct-mats__detail-line::after { position: absolute; top: 50%; right: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--detail-color); content: ''; transform: translateY(-50%); }
.ct-mats__layers li p { max-width: 420px; margin: 3px 0 0; font-size: 1.08rem; line-height: 1.32; }
.ct-mats__layers-visual { position: absolute; top: -40px; right: -80px; z-index: 1; width: min(57vw, 820px); }
.ct-mats__layers-visual img { width: 100%; height: auto; }
.ct-mats__photo-marker { display: none; }

.ct-mats__doormats { padding: 55px 0 64px; }
.ct-mats__doormats-grid { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: 45px; }
.ct-mats__doormats-grid > img { width: 100%; height: 405px; border-radius: 10px; object-fit: cover; }
.ct-mats__doormats h2 { margin-bottom: 28px; font-size: clamp(2.4rem, 3.1vw, 2.85rem); font-weight: 700; text-transform: uppercase; }
.ct-mats__doormats h2 span { color: var(--mats-green); }
.ct-mats__benefits--doormats { margin-bottom: 0; }
.ct-mats__benefits--doormats .ct-mats__benefit-icon { width: 62px; height: 62px; flex-basis: 62px; }

.ct-mats__tailored { padding: 78px 0 85px; background: #fff; }
.ct-mats__tailored-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr; align-items: stretch; gap: 20px; }
.ct-mats__tailored-copy { align-self: center; padding-right: 9%; }
.ct-mats__tailored-copy h2 { max-width: 540px; margin-bottom: 30px; font-size: clamp(2rem, 2.65vw, 2.4rem); font-weight: 400; line-height: 1.08; }
.ct-mats__tailored-copy h2 em { color: var(--mats-green); }
.ct-mats__tailored-copy p { max-width: 530px; margin-bottom: 28px; }
.ct-mats .ct-mats__dark-button { background: #242424; color: #fff; }
.ct-mats .ct-mats__dark-button:hover, .ct-mats .ct-mats__dark-button:focus-visible { background: #3e4c59; color: #fff; }
.ct-mats__tailored-card { display: flex; min-height: 325px; flex-direction: column; align-items: center; justify-content: center; padding: 26px 22px; border-radius: 9px; color: #fff; text-align: center; }
.ct-mats__tailored-card--blue { background: var(--mats-blue); }
.ct-mats__tailored-card--green { background: var(--mats-green); }
.ct-mats__tailored-icon { width: 90px; height: 90px; margin-bottom: 26px; object-fit: contain; }
.ct-mats__tailored-card h3 { margin-bottom: 13px; color: #fff; font-size: 1.7rem; line-height: 1.08; }
.ct-mats__tailored-card p { margin-bottom: 0; color: #fff; font-size: .98rem; line-height: 1.4; }

.ct-mats__related { padding: 45px 0 100px; }
.ct-mats__related h2 { margin-bottom: 30px; font-size: clamp(2rem, 2.8vw, 2.5rem); font-weight: 400; text-align: center; }
.ct-mats__related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ct-mats__related-grid a { position: relative; display: flex; min-height: 285px; align-items: end; overflow: hidden; padding: 26px; border-radius: 17px; background: #eef3f6; transition: transform .2s ease, box-shadow .2s ease; }
.ct-mats__related-grid a:hover, .ct-mats__related-grid a:focus-visible { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(18, 41, 60, .12); }
.ct-mats__related-grid a > div { position: relative; z-index: 1; max-width: 45%; }
.ct-mats__related-grid h3 { margin-bottom: 8px; }
.ct-mats__related-grid p { margin-bottom: 0; font-size: 1rem; line-height: 1.34; }
.ct-mats__related-grid img { position: absolute; right: 0; bottom: 0; width: 62%; height: 100%; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 35%); transition: opacity .3s ease; }
.ct-mats__related-mat img { object-fit: contain; object-position: right center; }
.ct-mats__related-mat .ct-related-image--hover { filter: sepia(.8) saturate(1.7) hue-rotate(32deg); }
.ct-mats__related-grid .ct-related-image--hover { opacity: 0; }
.ct-mats__related-grid a:hover .ct-related-image--hover,
.ct-mats__related-grid a:focus-visible .ct-related-image--hover { opacity: 1; }
.ct-mats .trial.section-pad { padding-block: 70px; }
.ct-mats .trial .section-heading { margin-bottom: 48px; }
.ct-mats .trial h2 { font-size: clamp(2.2rem, 3.3vw, 3rem); }

@media (prefers-reduced-motion: reduce) {
    .ct-mats__related-grid a,
    .ct-mats__related-grid img { transition: none; }
}

@media (max-width: 1080px) {
    .ct-mats__hero-copy { max-width: 55%; }
    .ct-mats__hero-image { width: 58vw; }
    .ct-mats__tailored-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-mats__tailored-copy { grid-column: 1 / -1; padding-right: 0; }
    .ct-mats__tailored-card { min-height: 260px; }
}

@media (max-width: 900px) {
    .ct-mats__hero-grid, .ct-mats__sorb-grid, .ct-mats__doormats-grid { grid-template-columns: 1fr; }
    .ct-mats__hero-grid { min-height: 0; gap: 10px; padding-top: 135px; padding-bottom: 40px; }
    .ct-mats__hero-copy { max-width: 100%; }
    .ct-mats h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 7vw, 3.4rem); }
    .ct-mats__hero-image { position: static; width: min(100%, 580px); max-width: 100%; justify-self: center; }
    .ct-mats__benefits { gap: 18px; margin: 28px 0; }
    .ct-mats__sorb, .ct-mats__layers, .ct-mats__doormats, .ct-mats__tailored, .ct-mats__related { padding-block: 62px; }
    .ct-mats__sorb-visual img { max-width: 560px; }
    .ct-mats__layers-grid { min-height: 0; }
    .ct-mats__layers-copy { padding: 0; }
    .ct-mats__layers ol { counter-reset: detail; gap: 27px; }
    .ct-mats__detail { counter-increment: detail; padding-left: 44px; }
    .ct-mats__detail::before { position: absolute; top: 0; left: 0; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--detail-color); color: #fff; content: counter(detail); font-size: .9rem; font-weight: 700; }
    .ct-mats__detail-title, .ct-mats__detail--inner .ct-mats__detail-title, .ct-mats__detail--stitches .ct-mats__detail-title { width: auto; }
    .ct-mats__layers h3 { white-space: normal; }
    .ct-mats__detail-line { display: none; }
    .ct-mats__layers-visual { position: relative; top: auto; right: auto; width: min(100%, 680px); margin: 18px auto 0; }
    .ct-mats__photo-marker { position: absolute; z-index: 2; display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--mats-blue); color: #fff; font-size: .85rem; font-weight: 700; box-shadow: 0 1px 8px #0007; }
    .ct-mats__photo-marker--outer { top: 17%; left: 37%; }
    .ct-mats__photo-marker--inner { top: 48%; left: 25%; background: var(--mats-green); }
    .ct-mats__photo-marker--stitches { top: 69%; left: 22%; }
    .ct-mats__doormats-grid > img { height: auto; max-height: 400px; }
    .ct-mats__tailored-card { min-height: 260px; }
    .ct-mats__related-grid a { min-height: 240px; }
}

@media (max-width: 600px) {
    .ct-mats__tailored-grid, .ct-mats__related-grid { grid-template-columns: 1fr; }
    .ct-mats__tailored-copy { grid-column: auto; }
}

@media (max-width: 520px) {
    .ct-mats__benefits, .ct-mats__facts { grid-template-columns: 1fr; }
    .ct-mats__facts { gap: 15px; }
    .ct-mats__hero-copy > p:not(.ct-mats__lead) { font-size: 1.04rem; }
    .ct-mats__related-grid a > div { max-width: 62%; }
    .ct-mats__related-grid img { width: 67%; }
}
