/*
 * Theme Name:   BioMarin Theme
 * Theme URI:    https://www.biomarin.com
 * Description:  Tema indipendente per il progetto BioMarin
 * Author:       BioMarin Team
 * Author URI:   https://www.biomarin.com
 * Version:      1.0.0
 * License:      GNU General Public License v2 or later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  biomarin-theme
 * Tags:         biomarin
 */

/* =========================================================
   FONTS (FUTURA PT)
   ========================================================= */
/* Commented out to bypass local files and use Typekit instead:
@font-face {
  font-family: 'Futura PT';
  src: url('fonts/FuturaCyrillicLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura PT';
  src: url('fonts/FuturaCyrillicBook.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura PT';
  src: url('fonts/FuturaCyrillicMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura PT';
  src: url('fonts/FuturaCyrillicDemi.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura PT';
  src: url('fonts/FuturaCyrillicBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura PT';
  src: url('fonts/FuturaCyrillicExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura PT';
  src: url('fonts/FuturaCyrillicHeavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
*/

/* =========================================================
   VARIABILI CSS GLOBALI — BioMarin Brand
   ========================================================= */
:root {
  --color-primary:        #003087;   /* Blu BioMarin */
  --color-primary-light:  #0050b3;
  --color-accent:         #00a0df;   /* Azzurro accentuato */
  --color-accent-dark:    #0082b8;
  --color-text:           #1a1a2e;
  --color-text-muted:     #5a6a8a;
  --color-bg:             #ffffff;
  --color-bg-alt:         #f4f8fc;
  --color-border:         #dce6f0;

  --font-heading:         'Futura PT', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body:            'Futura PT', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm:            4px;
  --radius-md:            8px;
  --radius-lg:            16px;

  --shadow-soft:          0 4px 20px rgba(0, 48, 135, 0.08);
  --shadow-hover:         0 8px 32px rgba(0, 48, 135, 0.15);

  --transition-base:      0.25s ease;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   TIPOGRAFIA
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-top: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-dark);
}

/* =========================================================
   LINK — SKIP TO CONTENT (accessibilità)
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 1rem;
}

/* =========================================================
   PULSANTI
   ========================================================= */
.btn,
.elementor-button,
button.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
  text-decoration: none;
}

/* Primario */
.btn-primary,
.elementor-button-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover,
.elementor-button-primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: #fff;
}

/* Secondario (outline) */
.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* =========================================================
   FORM — INPUT GLOBALI
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
  outline: none;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 160, 223, 0.15);
}

/* =========================================================
   CARD GENERICA
   ========================================================= */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* =========================================================
   SEZIONI / LAYOUT
   ========================================================= */
.section-bg-alt {
  background-color: var(--color-bg-alt);
}

.container-narrow {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* =========================================================
   UTILITY — TESTO
   ========================================================= */
.text-primary   { color: var(--color-primary) !important; }
.text-accent    { color: var(--color-accent) !important; }
.text-muted     { color: var(--color-text-muted) !important; }
.text-center    { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; letter-spacing: 0.08em; }

/* =========================================================
   UTILITY — SPAZIATURA
   ========================================================= */
.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }
.py-sm { padding-block: 2rem !important; }
.py-md { padding-block: 4rem !important; }
.py-lg { padding-block: 6rem !important; }

/* =========================================================
   HEADER / NAVIGAZIONE (Hello Elementor)
   ========================================================= */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-hover);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.site-footer a {
  color: #fff;
  transition: color var(--transition-base), opacity var(--transition-base);
}

.site-footer a:hover {
  opacity: 0.8;
}

.bm-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.bm-footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.bm-footer-nav {
  width: 100%;
}

.bm-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem 4rem;
}

.bm-footer-menu li {
  margin: 0;
}

.bm-footer-menu a {
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.bm-footer-bottom {
  width: 100%;
}

.bm-footer-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 768px) {
  .bm-footer-inner {
    gap: 2rem;
    padding: 3rem 1.5rem 1.5rem;
  }
  
  .bm-footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

/* =========================================================
   RESPONSIVE — BREAKPOINT COMUNI
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --py-section: 4rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .btn,
  .elementor-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .py-lg { padding-block: 3rem !important; }
  .py-md { padding-block: 2rem !important; }
}

/* =========================================================
   HOME PAGE TEMPLATE STYLES
   ========================================================= */

/* REGOLE BASE E ALLINEAMENTO MASSIMO 1440px */
.home-template-wrapper *, .home-template-wrapper *::before, .home-template-wrapper *::after { box-sizing: border-box; }
.home-template-wrapper { 
  font-family: 'Futura PT', 'Inter', sans-serif; 
  background: #ffffff; 
  color: #000000; 
  line-height: 1.6; 
  width: 100%; 
  max-width: 1440px; 
  margin: 0 auto; 
  padding: 0; 
  overflow-x: hidden; 
  position: relative;
}
.home-template-wrapper .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.home-template-wrapper .text-center { text-align: center; }

/* BOTTONI */
.home-template-wrapper .btn-outline {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #004993; border-radius: 999px; padding: 12px 28px; font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #004993; text-decoration: none; transition: background .25s, color .25s;
}
.home-template-wrapper .btn-outline:hover { background: #004993; color: #fff; }

.home-template-wrapper .btn-outline-white {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #ffffff; border-radius: 999px; padding: 12px 28px; font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffffff !important; text-decoration: none; transition: background .25s, color .25s;
}
.home-template-wrapper .btn-outline-white:hover { background: #ffffff !important; color: #004993 !important; }

/* ── 1. Hero ── */
.home-template-wrapper .hero-section {
  background-color: #004993;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 500px;
  padding: 0 20px;
}
.home-template-wrapper .hero-logo { max-width: 400px; width: 90%; height: auto; z-index: 2; object-fit: contain; }
.home-template-wrapper .hero-subtitle {
  color: #ffffff;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  margin-top: 24px;
  text-align: center;
  z-index: 2;
  max-width: 900px;
  letter-spacing: 0.5px;
}

/* ── 2. Intro ── */
.home-template-wrapper .intro-section { padding: 80px 20px; max-width: 1000px; margin: 50px auto 0; position: relative; }
.home-template-wrapper .intro-title { color: #004993; font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 24px; text-transform: uppercase; }
.home-template-wrapper .intro-text-strong { font-size: 36px; line-height: 41px; font-weight: normal; margin-bottom: 16px; color: #004993; }
.home-template-wrapper .intro-text { font-size: clamp(16px, 1.5vw, 18px); color: #004993; }

/* ── 3/4. Slider & Grid ── */
.home-template-wrapper .appunti-section { padding: 60px 20px; background: #ffffff; }
.home-template-wrapper .appunti-header { text-align: center; margin-bottom: 44px; }
.home-template-wrapper .appunti-header h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #004993; letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.15; }
.home-template-wrapper .appunti-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1050px; margin: 0 auto; }
.home-template-wrapper .appunti-card { border: 1px solid #e0e6ed; border-radius: 20px; padding: 40px 20px; text-align: center; text-decoration: none; background: #fff; display: flex; flex-direction: column; align-items: center; transition: transform 0.3s, box-shadow 0.3s; z-index: 2; position: relative; }
.home-template-wrapper .appunti-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 73, 147, 0.08); }
.home-template-wrapper .appunti-icon { width: 180px; height: 180px; object-fit: contain; margin-bottom: 24px; }
.home-template-wrapper .appunti-title { color: #004993; font-size: 30px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.home-template-wrapper .appunti-link { font-size: 18px; font-weight: 500; color: #004993; text-transform: none; text-decoration: underline; }
@media (max-width: 768px) { .home-template-wrapper .appunti-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .home-template-wrapper .appunti-grid { grid-template-columns: 1fr; } }

/* ── 5. Quaderno ── */
.home-template-wrapper .quaderno-img-area { width: 100%; height: 400px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.home-template-wrapper .quaderno-banner { background-color: #004993; color: #ffffff !important; text-align: center; padding: 60px 20px; }
.home-template-wrapper .quaderno-banner h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; color: #ffffff !important; }
.home-template-wrapper .quaderno-banner p { font-size: 18px; margin-bottom: 32px; opacity: 0.9; color: #ffffff !important; }
.home-template-wrapper .quaderno-logo { max-width: 200px; height: auto; margin-bottom: 24px; display: inline-block; object-fit: contain; }

/* ── 6. PKU ── */
.home-template-wrapper .pku-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.home-template-wrapper .pku-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}
.home-template-wrapper .pku-col-left {
  flex: 0 0 40%;
}
.home-template-wrapper .pku-col-right {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-template-wrapper .pku-title {
  position: relative;
  display: inline-block;
  font-size: 50px;
  font-weight: 700; /* bold */
  color: #004993;
  line-height: 1.1;
  margin: 0;
  z-index: 2;
}
.home-template-wrapper .pku-title-icon-wrapper {
  position: absolute;
  top: -26px;
  left: -30px;
  width: 50px;
  height: 50px;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-10deg);
}
.home-template-wrapper .pku-star-icon {
  width: 100%;
  height: 100%;
}
.home-template-wrapper .pku-content {
  margin-bottom: 32px;
  width: 100%;
}
.home-template-wrapper .pku-content {
  color: #000000;
}
.home-template-wrapper .pku-content,
.home-template-wrapper .pku-content * {
  text-align: left;
  font-size: 20px !important;
  line-height: 26px !important; /* interlinea */
}
.home-template-wrapper .pku-content,
.home-template-wrapper .pku-content p {
  font-weight: 400; /* normal */
}
.home-template-wrapper .pku-content strong,
.home-template-wrapper .pku-content b {
  font-weight: 700 !important; /* bold */
}
.home-template-wrapper .pku-content p {
  margin: 0 0 16px 0;
}
.home-template-wrapper .pku-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .home-template-wrapper .pku-container {
    gap: 40px;
  }
  .home-template-wrapper .pku-col-left {
    flex: 0 0 45%;
  }
  .home-template-wrapper .pku-col-right {
    flex: 0 0 50%;
  }
  .home-template-wrapper .pku-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .home-template-wrapper .pku-container {
    flex-direction: column;
    gap: 30px;
  }
  .home-template-wrapper .pku-col-left,
  .home-template-wrapper .pku-col-right {
    flex: 0 0 100%;
    width: 100%;
  }
  .home-template-wrapper .pku-title {
    font-size: 36px;
  }
  .home-template-wrapper .pku-title-icon-wrapper {
    top: -20px;
    left: -24px;
    width: 40px;
    height: 40px;
  }
  .home-template-wrapper .pku-content,
  .home-template-wrapper .pku-content * {
    font-size: 18px !important;
    line-height: 24px !important;
  }
}

/* ── 8. Footer ── */
.home-template-wrapper .footer-area { padding: 60px 20px; text-align: center; }
.home-template-wrapper .footer-disclaimer { max-width: 1100px; margin: 0 auto 70px; text-align: center; }
.home-template-wrapper .footer-disclaimer, .home-template-wrapper .footer-disclaimer * {
  font-size: 24px !important;
  line-height: 30px !important; /* interlinea */
  color: #004993 !important;
  text-align: center !important;
}
.home-template-wrapper .footer-disclaimer {
  font-weight: 400; /* normal by default */
}
.home-template-wrapper .footer-disclaimer strong,
.home-template-wrapper .footer-disclaimer b {
  font-weight: 700 !important; /* bold if set in backend */
}
.home-template-wrapper .footer-patrocini-title {
  color: #004993;
  font-size: 24px !important;
  font-weight: 700 !important; /* bold */
  line-height: 30px !important; /* interlinea */
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 30px;
}
.home-template-wrapper .patrocini-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.home-template-wrapper .patrocini-logos img {
  width: calc(25% - 45px);
  min-width: 200px;
  max-height: 100px; /* Double size */
  height: auto;
  object-fit: contain;
}
.home-template-wrapper .biblio-accordion { max-width: 1100px; margin: 20px auto 0; text-align: left; border: 1px solid #d0daf0; border-radius: 8px; }
.home-template-wrapper .biblio-header {
  padding: 16px 20px;
  color: #004993;
  font-size: 30px;
  font-weight: 500; /* medium */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #f9fbff;
  border-radius: 8px;
}
.home-template-wrapper .biblio-content {
  padding: 20px 20px 20px;
  display: none;
}
.home-template-wrapper .biblio-content,
.home-template-wrapper .biblio-content * {
  font-size: 18px !important;
  line-height: 23px !important; /* interlinea */
  color: #000000 !important;
}
.home-template-wrapper .biblio-content {
  font-weight: 400; /* normal */
}
.home-template-wrapper .biblio-content strong,
.home-template-wrapper .biblio-content b {
  font-weight: 700 !important;
}
.home-template-wrapper .biblio-accordion.open .biblio-content { display: block; }

/* Elenchi Numerici Custom */
.home-template-wrapper ol {
  padding-left: 20px;
  margin: 0 0 20px 0;
}
.home-template-wrapper ol li {
  margin-bottom: 10px;
}
.home-template-wrapper ol li:last-child {
  margin-bottom: 0;
}
.home-template-wrapper ol li::marker {
  font-weight: 700 !important; /* Numero in grassetto */
}

/* ── Stili Slider Storie ── */
.home-template-wrapper .sphe-root { position: relative; width: 100%; padding: 56px 20px 48px; background: transparent; }
.home-template-wrapper .sphe-header { text-align: center; margin-bottom: 44px; position: relative; z-index: 2; }
.home-template-wrapper .sphe-header h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #004993; margin-bottom: 16px; }
.home-template-wrapper .sphe-slider-wrapper { position: relative; max-width: 1050px; margin: 0 auto; z-index: 2; }
.home-template-wrapper .sphe-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid #004993; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #004993; transition: background .25s, color .25s; z-index: 10; }
.home-template-wrapper .sphe-arrow:hover { background: #004993; color: #fff; }
.home-template-wrapper .sphe-arrow svg { width: 18px; height: 18px; stroke-width: 2; }
.home-template-wrapper .sphe-arrow.sphe-prev { left: -80px; }
.home-template-wrapper .sphe-arrow.sphe-next { right: -80px; }
.home-template-wrapper .sphe-track { width: 100%; overflow: hidden; border-radius: 20px; }
.home-template-wrapper .sphe-slides { display: flex; transition: transform .52s cubic-bezier(.77,0,.18,1); will-change: transform; }
.home-template-wrapper .sphe-slide { min-width: 100%; display: flex; align-items: center; min-height: 480px; }
.home-template-wrapper .sphe-text { flex: 0 0 520px; background: #faf6ec; border-radius: 20px; padding: 46px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; height: 410px; }
.home-template-wrapper .sphe-name { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: #004993; margin-bottom: 16px; text-transform: uppercase; }
.home-template-wrapper .sphe-excerpt,
.home-template-wrapper .sphe-excerpt p {
  font-size: 21px;
  line-height: 25px;
  font-weight: normal;
  font-style: normal;
  color: #000000;
}
.home-template-wrapper .sphe-excerpt {
  margin-bottom: 28px;
}
.home-template-wrapper .sphe-excerpt p {
  margin: 0;
}
.home-template-wrapper .sphe-text .btn-outline { align-self: flex-start; }
.home-template-wrapper .sphe-img-card { flex: 0 0 690px; border-radius: 20px; overflow: hidden; margin-left: -160px; position: relative; z-index: 1; height: 480px; background: #c9d4e8; }
.home-template-wrapper .sphe-img-card img { width: 100%; height: 100%; object-fit: cover; }
.home-template-wrapper .sphe-dots { display: flex; justify-content: center; gap: 9px; margin-top: 50px; position: relative; z-index: 2; }
.home-template-wrapper .sphe-dot { width: 12px; height: 12px; border-radius: 50%; background: #c5cfe0; border: none; cursor: pointer; transition: background .3s; padding: 0; }
.home-template-wrapper .sphe-dot.active { background: #004993; }
@media (max-width: 1024px) {
  .home-template-wrapper .sphe-slide { flex-direction: column; min-height: unset; }
  .home-template-wrapper .sphe-text { flex: unset; width: 100%; border-radius: 20px 20px 0 0; padding: 32px 24px; height: auto; min-height: 300px; }
  .home-template-wrapper .sphe-img-card { flex: unset; width: 100%; margin-left: 0; border-radius: 0 0 20px 20px; height: 350px; }
  .home-template-wrapper .sphe-arrow.sphe-prev { left: 10px; background: #fff; }
  .home-template-wrapper .sphe-arrow.sphe-next { right: 10px; background: #fff; }
}
