/* DR.SHOP24 - sito sul dominio dedicato (layout module/Frontend/view/drshop24/layout/layout.phtml).
   Tutto è sotto .ds-page per non interferire con il tema del frontend Istrumed, caricato comunque. */
:root {
    --ds-navy: #11476f;
    --ds-navy-dark: #0d3756;
    --ds-navy-soft: #164a70;
    --ds-sky: #3484bc;
    --ds-led: #5fe0dc;
    --ds-ink: #0f2a40;
    --ds-text: #3e566a;
    --ds-muted: #4d6375;
    --ds-ground: #f3f7fa;
    --ds-line: #dfe9f0;
    --ds-on-dark: #e7f1f8;
    --ds-on-dark-muted: #a9c3d6;
    --ds-warn: #ff9d7a;
    --ds-font-display: "Montserrat", system-ui, sans-serif;
    --ds-font-body: "Source Sans 3", system-ui, sans-serif;
}

body.ds-body { background: #ffffff; margin: 0; }
.ds-page { font-family: var(--ds-font-body); color: var(--ds-ink); font-size: 18px; line-height: 1.55; background: #ffffff; overflow-x: hidden; }
.ds-page h1, .ds-page h2, .ds-page h3 { font-family: var(--ds-font-display); color: var(--ds-navy); margin: 0; text-wrap: balance; letter-spacing: -0.01em; line-height: 1.15; text-transform: none; }
.ds-page h2 { font-size: 40px; font-weight: 800; }
.ds-page h3 { font-size: 18px; font-weight: 700; }
.ds-page p { margin: 0; color: var(--ds-text); line-height: 1.55; }
.ds-page a { color: var(--ds-navy); }
.ds-page a:hover { color: var(--ds-sky); }
.ds-page img { max-width: 100%; height: auto; }
.ds-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; box-sizing: border-box; }

.ds-stack-10, .ds-stack-12, .ds-stack-18, .ds-stack-24, .ds-stack-28, .ds-stack-40, .ds-stack-48 { display: flex; flex-direction: column; min-width: 0; }
.ds-stack-10 { gap: 10px; } .ds-stack-12 { gap: 12px; } .ds-stack-18 { gap: 18px; } .ds-stack-24 { gap: 24px; }
.ds-stack-28 { gap: 28px; } .ds-stack-40 { gap: 40px; } .ds-stack-48 { gap: 48px; }

.ds-eyebrow { font-family: var(--ds-font-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ds-sky); }
.ds-eyebrow-led, .ds-led { color: var(--ds-led) !important; }

/* pulsanti */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font-family: var(--ds-font-display); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; box-sizing: border-box; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.ds-page .ds-btn-pri { background: var(--ds-navy); color: #ffffff; }
.ds-page .ds-btn-pri:hover { background: var(--ds-navy-dark); color: #ffffff; }
.ds-page .ds-btn-out { border-color: var(--ds-navy); color: var(--ds-navy); background: transparent; }
.ds-page .ds-btn-out:hover { background: var(--ds-navy); color: #ffffff; }
.ds-page .ds-btn-led { background: var(--ds-led); color: #0b2c45; }
.ds-page .ds-btn-led:hover { background: #ffffff; color: #0b2c45; }
.ds-btn-sm { min-height: 44px; padding: 0 18px; }
.ds-btn:focus-visible, .ds-page a:focus-visible, .ds-menu-toggle:focus-visible { outline: 3px solid var(--ds-led); outline-offset: 2px; }
.ds-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* header */
.ds-header { background: #ffffff; border-bottom: 1px solid #e3ecf2; position: sticky; top: 0; z-index: 50; }
.ds-header-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.ds-logo { display: flex; flex: none; }
.ds-logo img { height: 52px; width: auto; }
.ds-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.ds-page .ds-nav a:not(.ds-btn) { color: var(--ds-ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.ds-page .ds-nav a:not(.ds-btn):hover { color: var(--ds-sky); }
.ds-menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--ds-ground); flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.ds-menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ds-navy); transition: transform .2s, opacity .2s; }
.ds-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ds-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ds-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.ds-hero-section { background: linear-gradient(180deg, var(--ds-ground) 0%, #ffffff 100%); }
.ds-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-block: 64px 40px; }
.ds-page .ds-hero-title { font-size: 60px; line-height: 1.05; font-weight: 800; }
.ds-hero-title span { font-weight: 500; color: var(--ds-sky); }
.ds-lead { font-size: 20px; max-width: 520px; }
.ds-hero-media { display: flex; justify-content: center; }
.ds-hero-media img { width: 100%; max-width: 500px; }
.ds-facts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 8px 0 0; }
.ds-facts div { display: flex; flex-direction: column; }
.ds-facts dt { font-family: var(--ds-font-display); font-weight: 800; font-size: 28px; color: var(--ds-navy); line-height: 1.2; }
.ds-facts dd { margin: 0; font-size: 15px; color: var(--ds-muted); }

/* 24 ore */
.ds-night { background: var(--ds-navy-dark); color: var(--ds-on-dark); padding-block: 56px; }
.ds-page .ds-night h2 { color: #ffffff; font-size: 34px; font-weight: 700; }
.ds-night-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ds-night-head .ds-stack-10 { max-width: 640px; }
.ds-page .ds-night-note { font-size: 15px; color: var(--ds-on-dark-muted); max-width: 300px; }
.ds-hours-chart { display: flex; flex-direction: column; gap: 12px; }
.ds-hours-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.ds-hours-label { font-family: var(--ds-font-display); font-weight: 700; font-size: 14px; }
.ds-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
.ds-hour { height: 28px; border-radius: 4px; background: #1b4d73; }
.ds-hour.is-open { background: var(--ds-sky); }
.ds-hour.is-half { background: linear-gradient(90deg, #1b4d73 50%, var(--ds-sky) 50%); }
.ds-hour.is-always { background: var(--ds-led); }
.ds-hours-scale { font-size: 12px; color: var(--ds-on-dark-muted); font-variant-numeric: tabular-nums; }

/* sezioni */
.ds-section { padding-block: 88px; }
.ds-section-tint { background: var(--ds-ground); }
.ds-section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.ds-section-head-row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ds-section-head-row p { font-size: 16px; color: var(--ds-muted); }
.ds-page .ds-page-title { font-size: 44px; font-weight: 800; }

/* caratteristiche */
.ds-features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: center; }
.ds-features-col { display: flex; flex-direction: column; gap: 36px; }
.ds-features-left { text-align: right; }
.ds-feature { display: flex; flex-direction: column; gap: 6px; }
.ds-feature p { font-size: 16px; color: var(--ds-muted); }
.ds-features-media { display: flex; justify-content: center; background: var(--ds-ground); border-radius: 28px; padding: 28px; }
.ds-features-media img { width: 100%; max-width: 360px; }

/* modelli */
.ds-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ds-model { background: #ffffff; border: 1px solid var(--ds-line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ds-model-top { display: flex; justify-content: space-between; align-items: center; }
.ds-model-kicker { font-family: var(--ds-font-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-sky); }
.ds-model-size { font-family: var(--ds-font-display); font-weight: 800; font-size: 18px; color: #ffffff; background: var(--ds-navy); min-width: 44px; height: 44px; padding: 0 8px; box-sizing: border-box; border-radius: 12px; display: grid; place-items: center; }
.ds-model-media { height: 220px; display: flex; align-items: flex-end; justify-content: center; }
.ds-model-media img { max-height: 220px; width: auto; }
.ds-page .ds-model h3 { font-size: 22px; }
.ds-model-specs { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.ds-model-specs div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e6eef4; padding-top: 8px; }
.ds-model-specs dt { font-weight: 400; color: var(--ds-muted); }
.ds-model-specs dd { margin: 0; font-weight: 700; text-align: right; }

/* gestione remota */
.ds-remote { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.ds-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.ds-list li { display: flex; gap: 10px; align-items: baseline; }
.ds-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-sky); flex: none; transform: translateY(-2px); }
.ds-panel { background: var(--ds-navy-dark); border-radius: 28px; padding: 28px; color: var(--ds-on-dark); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ds-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ds-panel-head div { display: flex; flex-direction: column; gap: 2px; }
.ds-panel-head strong { font-family: var(--ds-font-display); color: #ffffff; }
.ds-panel-head span { font-size: 14px; color: var(--ds-on-dark-muted); }
.ds-status { display: inline-flex; align-items: center; gap: 8px; background: var(--ds-navy-soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; color: var(--ds-led) !important; }
.ds-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-led); }
.ds-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-variant-numeric: tabular-nums; }
.ds-kpis div { background: var(--ds-navy-soft); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.ds-kpis span { font-size: 13px; color: var(--ds-on-dark-muted); }
.ds-kpis strong { font-family: var(--ds-font-display); font-weight: 800; font-size: 24px; color: #ffffff; white-space: nowrap; }
.ds-panel-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ds-on-dark-muted); }
.ds-dot-warn { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-warn); }
.ds-slots { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 5px; }
.ds-slot { height: 30px; border-radius: 5px; background: var(--ds-navy-soft); display: flex; align-items: flex-end; overflow: hidden; }
.ds-slot i { display: block; width: 100%; background: var(--ds-led); }
.ds-slot i.is-low { background: var(--ds-warn); }
.ds-panel-note { font-size: 13px; color: var(--ds-on-dark-muted); }

/* fascia iperammortamento */
.ds-band { background: var(--ds-navy); padding-block: 48px; }
.ds-band-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ds-band-text { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ds-band-text div { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.ds-band-figure { font-family: var(--ds-font-display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--ds-led); }
.ds-page .ds-band h2 { font-size: 26px; font-weight: 700; color: #ffffff; }
.ds-page .ds-band p { color: #cfe1ee; font-size: 17px; }

/* contatti */
.ds-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.ds-contacts { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.ds-contacts div { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-contacts dt { font-weight: 700; }
.ds-contacts dd { margin: 0; }
.ds-robot { width: 220px; mix-blend-mode: multiply; margin-top: 8px; }
.ds-section-tint .ds-robot { mix-blend-mode: multiply; }
.ds-form-card { background: var(--ds-ground); border-radius: 28px; padding: 32px; min-width: 0; }
.ds-section-tint .ds-form-card { background: #ffffff; }
.ds-form-card .form-label { font-family: var(--ds-font-display); font-size: 13px !important; font-weight: 700; color: var(--ds-navy) !important; }
.ds-form-card .form-control { font-family: var(--ds-font-body); font-size: 16px !important; color: var(--ds-ink); border: 1.5px solid #c9d8e4; border-radius: 12px; padding: 12px 14px !important; min-height: 48px; background: #ffffff; box-shadow: none; }
.ds-form-card .form-control:focus { border-color: var(--ds-sky); box-shadow: 0 0 0 3px rgba(52, 132, 188, .2); }
.ds-form-card .form-check-label { font-size: 15px !important; color: var(--ds-text) !important; }
.ds-form-card .btn, .ds-form-card [type="submit"] { background: var(--ds-navy) !important; border: 0 !important; border-radius: 999px !important; min-height: 48px; padding: 0 28px !important; font-family: var(--ds-font-display); font-weight: 700; font-size: 15px !important; color: #ffffff !important; text-transform: none !important; }
.ds-form-card .btn:hover { background: var(--ds-navy-dark) !important; }

/* 404 */
.ds-not-found { max-width: 720px; padding-block: 40px; }

/* area clienti (viste del frontend standard dentro questo layout) */
.ds-customer-area { padding-block: 32px 64px; min-height: 50vh; }
.ds-customer-area .btn-primary { background: var(--ds-navy); border-color: var(--ds-navy); }

/* footer */
.ds-footer { background: var(--ds-navy-dark); color: #cfe1ee; }
.ds-footer-row { padding-block: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.ds-footer-row img { height: 72px; width: auto; }
.ds-footer-info { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ds-page .ds-footer a { color: #cfe1ee; }
.ds-page .ds-footer a:hover { color: #ffffff; }
.ds-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* tablet */
@media (max-width: 1080px) {
    .ds-features { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ds-features-media { grid-column: 1 / -1; grid-row: 1; max-width: 420px; justify-self: center; width: 100%; box-sizing: border-box; }
    .ds-features-left { text-align: left; }
    .ds-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* telefono */
@media (max-width: 860px) {
    .ds-page { font-size: 17px; }
    .ds-page h2 { font-size: 30px; }
    .ds-page .ds-hero-title { font-size: 40px; }
    .ds-page .ds-page-title { font-size: 34px; }
    .ds-header-row { min-height: 68px; }
    .ds-logo img { height: 42px; }
    .ds-menu-toggle { display: flex; }
    .ds-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #ffffff; border-bottom: 1px solid #e3ecf2; box-shadow: 0 12px 24px rgba(15, 42, 64, .08); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
    .ds-nav.is-open { display: flex; }
    .ds-page .ds-nav a:not(.ds-btn) { padding: 12px 0; border-bottom: 1px solid #edf2f6; }
    .ds-nav .ds-btn { margin-top: 12px; }
    .ds-hero, .ds-remote, .ds-contact { grid-template-columns: minmax(0, 1fr); }
    .ds-hero { padding-block: 40px 24px; gap: 24px; }
    .ds-hero-media img { max-width: 320px; }
    .ds-lead { font-size: 18px; }
    .ds-facts dt { font-size: 22px; }
    .ds-section { padding-block: 56px; }
    .ds-night { padding-block: 44px; }
    .ds-page .ds-night h2 { font-size: 26px; }
    .ds-hours-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .ds-hours { gap: 2px; }
    .ds-hour { height: 22px; border-radius: 3px; }
    .ds-hours-scale span:nth-child(odd) { visibility: hidden; }
    .ds-hours-scale { font-size: 11px; }
    .ds-features { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .ds-features-col { gap: 22px; }
    .ds-panel { padding: 20px; border-radius: 22px; }
    .ds-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ds-kpis div:last-child { grid-column: 1 / -1; }
    .ds-kpis strong { font-size: 20px; }
    .ds-slots { gap: 3px; }
    .ds-slot { height: 22px; border-radius: 3px; }
    .ds-band-figure { font-size: 48px; }
    .ds-robot { display: none; }
    .ds-form-card { padding: 20px; border-radius: 22px; }
    .ds-footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
    .ds-models { grid-template-columns: minmax(0, 1fr); }
    .ds-model-media { height: 200px; }
    .ds-model-media img { max-height: 200px; }
    .ds-actions .ds-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-btn, .ds-menu-toggle span { transition: none; }
}
