/** ADD YOUR AWESOME CODES HERE **/
/* 
 * particles.js
 */
#particles-js canvas {
  position: absolute;
  top: 10%;
  height: 890px !important;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100001;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  border: 2px solid #cd1713;
  border-radius: 4px;
  font-weight: 700;
  -webkit-transform: translateY(-140%);
  transform: translateY(-140%);
  -webkit-transition: -webkit-transform .2s ease;
  transition: transform .2s ease;
}

.skip-link:focus {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  color: #111;
}

/* =========================
   FOOTER (mobile + Safari): allineato a sinistra
   ========================= */
@media (max-width: 768px) {
  .copyrights,
  .copyrights .footer-left,
  .copyrights .footer-company-name,
  .copyrights .footer-left p,
  .copyrights .footer-left a {
    text-align: left !important;
  }

  .copyrights .container,
  .copyrights .footer-distributed,
  .copyrights .footer-left {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    float: none !important;
    display: block !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}

/* =========================
   Cookie banner: link privacy su riga sua
   ========================= */
#cookieBanner .cookie-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#cookieBanner #privacyLink {
  align-self: flex-start;
  display: inline-block;
  margin-left: 0 !important;
}

/* =========================
   Navbar logo: dimensione fissa, aspect ratio invariato
   ========================= */
#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#mainNav .navbar-brand img {
  width: 221px !important;    /* dimensione attuale */
  height: auto !important;    /* mantiene aspect ratio */
  max-width: none !important; /* bypass .img-fluid */
}

/* =========================
   Anchor offset (mobile): mostra il titolo e non lo nasconde sotto navbar
   ========================= */
@media (max-width: 768px) {
  #home, #services, #portfolio, #testimonials, #partners, #contact {
    scroll-margin-top: 90px;
  }

  /* fallback Safari: garantisce offset anche se scroll-margin-top non basta */
  #services {
    padding-top: 90px;
    margin-top: -90px;
  }
}



/* CLOUDS: desktop -> sempre alla base del banner */
#home #clouds {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;   /* elimina gap Safari */
  top: auto !important;

  width: 100% !important;
  height: 110px !important;

  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;

  pointer-events: none !important;
  z-index: 2 !important;

  transform: none !important;
}

/* Testi sopra le nuvole */
#home .heading {
  position: relative !important;
  z-index: 3 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding-bottom: 110px !important;
  max-height: 100% !important;
}

/* MOBILE/TABLET touch: nascondi SEMPRE (anche landscape) */
@media (hover: none) and (pointer: coarse) {
  #home #clouds {
    display: none !important;
  }
  #home .heading {
    padding-bottom: 0 !important;
  }
}

.section .section-heading{
  font-family: inherit;   /* or your chosen font */
  font-size: 2rem;        /* pick one size */
  font-weight: 700;       /* pick one weight */
  margin-bottom: .75rem;
}

/* force same typography for section headings */
#about .message-box h2,
#services .section-title h1.display-4{
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================
   UNIFICA TITOLI SEZIONI (Chi Sono, Motto, Servizi, Citazioni, Contatti)
   ========================================= */

.section .section-title h1,
.section .section-title h2,
.section .section-title h3,
#about .message-box h2 {
  font-family: inherit !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 .75rem 0 !important;
}

/* se vuoi che "Motto" NON sia display-4 (Bootstrap) */
#services .section-title h1.display-4 {
  font-size: 2rem !important;
  font-weight: 700 !important;
}

/* “Competenze Chiave” as subheading */
#about .message-box h3[data-i18n="about_keyskills"]{
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
}

/* =========================
   ABOUT: compact + categoric
   ========================= */
#about .section-title { margin-bottom: 0 !important; }
#about .section-title p { margin-bottom: .6rem !important; }

#about .about-subtitle {
  margin-top: .9rem !important;
  margin-bottom: .5rem !important;
}

#about .about-list {
  margin: .25rem 0 .75rem 0 !important;
  padding-left: 1.1rem !important;
}

#about .about-list li {
  margin: .25rem 0 !important;
  line-height: 1.35 !important;
}

/* even tighter for skills list */
#about .about-list--tight li {
  margin: .18rem 0 !important;
}

/* compact closing paragraphs */
#about .about-compact {
  margin-bottom: .55rem !important;
}

/* =========================
   ABOUT (#about): normalize text size (exclude titles)
   ========================= */
#about .section-title{
  /* one single body size for this section */
  --about-copy: clamp(15px, 0.25vw + 14px, 17px);
}

/* All normal text */
#about .section-title p,
#about .section-title li{
  font-size: var(--about-copy) !important;
  line-height: 1.65 !important;
  font-weight: 400;
}

/* Keep lists tidy */
#about .section-title ul{
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
#about .section-title li{
  margin-bottom: .35rem;
}

/* Don’t touch the button typography */
#about .section-title a:not(.sim-btn){
  font-size: var(--about-copy) !important;
}

/* Titles stay titles (optional explicit) */
#about .section-title h3{
  font-size: clamp(24px, 1.2vw + 18px, 34px);
}
#about .section-title h4{
  font-size: clamp(18px, 0.6vw + 16px, 22px);
}

:root{
  --navH: 72px;   /* set by JS */
  --vh: 1vh;      /* set by JS */
  --topPad: calc(env(safe-area-inset-top) + var(--navH));
}

/* Notch-safe fixed navbar */
#mainNav{
  top: env(safe-area-inset-top);
}

/* Anchor scroll offset (works everywhere) */
html{
  scroll-padding-top: calc(env(safe-area-inset-top) + var(--navH));
}

/* OPTIONAL but recommended: logo responsive (your 221px fixed can make navbar too tall on small phones) */
#mainNav .navbar-brand img{
  width: clamp(140px, 45vw, 221px) !important;
  height: auto !important;
  max-width: none !important; /* bypass .img-fluid */
}

/* =========================
   HERO + CLOUDS (ONE SOURCE OF TRUTH)
   ========================= */
#home.main-banner{
  position: relative !important;
  overflow: hidden !important;

  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  /* Important: correct path from /css/custom.css */
  background: url('../uploads/banner-01.jpg') center/cover no-repeat !important;

  width: 100% !important;

  /* Important: override any old height:100vh coming from HTML */
  height: calc(var(--vh) * 100) !important;
  min-height: calc(var(--vh) * 100) !important;

  box-sizing: border-box !important;
  padding-top: var(--topPad) !important;
}

@supports (height: 100dvh){
  #home.main-banner{
    height: 100dvh !important;
    min-height: 100dvh !important;
  }
}

/* CLOUDS desktop -> anchored to bottom */
#home #clouds{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  top: auto !important;

  width: 100% !important;
  height: 110px !important;

  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;

  pointer-events: none !important;
  z-index: 2 !important;
}

/* Text above clouds */
#home .heading{
  position: relative !important;
  z-index: 3 !important;

  min-height: calc(100% - var(--topPad)) !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;

  padding-bottom: 110px !important;
}

/* Mobile/touch: hide clouds always */
@media (hover: none) and (pointer: coarse){
  #home #clouds{ display: none !important; }
  #home .heading{ padding-bottom: 0 !important; }
}

/* =========================================
   CONTACT (#contact): background always fills (mobile fix)
   ========================================= */
#contact.section.db{
  position: relative;
  display: flow-root;                 /* evita problemi di collassi/clear senza tagliare ombre */
  height: auto !important;            /* annulla eventuali height fissi */
  min-height: unset !important;       /* annulla min-height strani */
  background-color: #0b0f14;          /* fallback (non sovrascrive l’immagine, solo “dietro”) */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;             /* riempie sempre anche se cresce in altezza */
}

/* iOS / mobile: niente background fixed (taglia spesso la resa) */
@media (max-width: 768px){
  #contact.section.db{
    background-attachment: scroll !important;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }
}

/* =========================================
   SERVIZI: FILTRI "Tutti / Elettrotecnica / ..."
   - riempiono tutto il container
   - nessuno spazio vuoto
   - separatori visibili
   ========================================= */
.services-document {
  margin: 8px 0 22px;
}

.services-pdf-btn {
  min-width: 245px;
  max-width: 100%;
  border-color: #cd1713 !important;
  color: #cd1713 !important;
  background: #fff;
  font-weight: 700;
}

.services-pdf-btn:hover,
.services-pdf-btn:focus {
  border-color: #cd1713 !important;
  background: #cd1713 !important;
  color: #fff !important;
  text-decoration: none;
}

.services-pdf-btn i {
  margin-right: 8px;
}

.service-guide {
  margin: 0 0 24px;
}

.service-guide-head {
  margin-bottom: 14px;
}

.service-guide-head h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}

.service-guide-head p {
  max-width: 820px;
  margin-bottom: 0;
  color: #666;
}

.service-guide-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-guide-item {
  min-height: 140px;
  padding: 18px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  display: -ms-flexbox;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  -webkit-transition: border-color .2s ease, box-shadow .2s ease, -webkit-transform .2s ease;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.service-guide-item i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff1f1;
  color: #cd1713;
  line-height: 36px;
  text-align: center;
  flex: 0 0 36px;
}

.service-guide-copy,
.service-guide-copy strong,
.service-guide-copy span {
  display: block;
}

.service-guide-copy strong {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.25;
}

.service-guide-copy span {
  color: #666;
  font-size: 13px;
  line-height: 1.45;
}

.service-guide-item:hover,
.service-guide-item:focus,
.service-guide-item.active {
  border-color: #cd1713;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  outline: none;
}

.gallery-menu .button-group.filter-button-group{
  width: 100%;
  display: grid !important;

  /* Desktop: 6 bottoni su una riga (come i tuoi) */
  grid-template-columns: repeat(6, 1fr);

  /* separatori: 1px (non “spazio vuoto”, ma linea) */
  gap: 1px;

  /* colore linea separatore */
  background: rgba(0,0,0,0.18);

  /* cornice esterna + arrotondamento */
  padding: 1px;
  border-radius: 10px;
  overflow: hidden;

  /* niente allineamenti strani del tema */
  text-align: center !important;
}

/* Bottoni: ogni casella riempie la sua cella */
.gallery-menu .button-group.filter-button-group button{
  margin: 0 !important;          /* elimina gap del tema */
  border: 0 !important;          /* usiamo i separatori grid, non i bordi */
  border-radius: 0 !important;

  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 10px;
  line-height: 1.15;
  font-weight: 700;

  white-space: normal;           /* permette testo su 2 righe */
  text-align: center;

  background: #ffffff;
}

/* Stato attivo (se il tuo JS aggiunge .active) */
.gallery-menu .button-group.filter-button-group button.active{
  background: #111 !important;
  color: #fff !important;
}

/* Hover (desktop) */
@media (hover:hover){
  .gallery-menu .button-group.filter-button-group button:hover{
    filter: brightness(0.96);
  }
}

/* Tablet: 3 colonne (2 righe piene) */
@media (max-width: 991.98px){
  .service-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-menu .button-group.filter-button-group{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: 2 colonne (righe piene, niente buchi) */
@media (max-width: 575.98px){
  .services-pdf-btn {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .service-guide-grid {
    grid-template-columns: 1fr;
  }

  .service-guide-item {
    min-height: 0;
  }

  .gallery-menu .button-group.filter-button-group{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   HERO: background full container + centered text
   (keeps clouds at 110px, no px changes)
   ========================================= */
:root{
  --cloudH: 110px; /* keep your current clouds height */
}

/* Hard override any global `section { ... }` rules */
#home.main-banner{
  position: relative !important;
  overflow: hidden !important;

  /* full-viewport hero */
  height: calc(var(--vh) * 100) !important;
  min-height: calc(var(--vh) * 100) !important;

  /* full background cover */
  background: url('../uploads/banner-01.jpg') center/cover no-repeat !important;
  background-color: #0b0f14 !important; /* fallback behind image */

  /* neutralize global section styling */
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  /* key: make hero a flex container */
  display: flex !important;
  flex-direction: column !important;
}

@supports (height: 100dvh){
  #home.main-banner{
    height: 100dvh !important;
    min-height: 100dvh !important;
  }
}

/* The text area occupies the whole hero height.
   Padding reserves space for navbar (top) and clouds (bottom),
   then we center the text within that remaining space. */
#home.main-banner > .heading{
  position: relative !important;
  z-index: 3 !important;

  flex: 1 1 auto !important;
  width: 100% !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;  /* vertical centering */
  align-items: center !important;      /* horizontal centering */
  text-align: center !important;

  /* reserve space (no px changes) */
  padding-top: var(--topPad) !important;
  padding-bottom: var(--cloudH) !important;

  /* readable padding edges */
  padding-left: 16px !important;
  padding-right: 16px !important;

  /* cancel old rules */
  height: auto !important;
  max-height: none !important;
}

/* Clouds always visible, anchored to bottom */
#home #clouds{
  position: absolute !important;
  left: 50% !important;
  bottom: -1px !important;
  top: auto !important;

  width: 120% !important;              /* avoid edge gaps with slice */
  height: var(--cloudH) !important;

  transform: translateX(-50%) !important;

  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;

  pointer-events: none !important;
  z-index: 2 !important;
}

/* Optional: cloud color */
#home #clouds path{ fill: #fff; }

/* Mobile/tablet: hide decorative clouds when the viewport is narrow or touch-first. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
  #home #clouds {
    display: none !important;
  }

  #home.main-banner > .heading,
  #home .heading {
    padding-bottom: 0 !important;
  }
}

/* =========================
   Local interactions + broad responsive polish
   ========================= */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(205, 23, 19, 0.35);
  outline-offset: 3px;
}

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 100000;
  background: #cd1713;
  box-shadow: 0 0 10px rgba(205, 23, 19, 0.45);
  pointer-events: none;
}

#mainNav .navbar-collapse {
  max-height: calc(100vh - var(--navH));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.services-inner-box,
.gallery-list .card {
  -webkit-transition: border-color .2s ease, box-shadow .2s ease, -webkit-transform .2s ease;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  cursor: pointer;
}

.services-inner-box:focus,
.gallery-list .card:focus {
  outline: 3px solid rgba(205, 23, 19, 0.25);
  outline-offset: 3px;
}

.services-inner-box:hover,
.services-inner-box.is-active,
.gallery-list .card:hover,
.gallery-list .card.is-active {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14) !important;
}

.services-inner-box.is-active,
.gallery-list .card.is-active {
  border-color: #cd1713 !important;
}

.gallery-menu .button-group.filter-button-group{
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.gallery-menu .button-group.filter-button-group button{
  -ms-flex: 1 1 16%;
  flex: 1 1 16%;
  min-width: 145px;
}

#mainNav .navbar-nav .nav-item:not(.lang-switch) > .nav-link {
  font-size: 125%;
}

#mainNav .lang-switch {
  gap: 6px;
}

#mainNav .lang-switch .lang-btn {
  min-width: 34px;
  padding: 6px 8px !important;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  opacity: 0.86;
}

#mainNav .lang-switch .lang-btn:hover,
#mainNav .lang-switch .lang-btn:focus {
  opacity: 1;
  border-color: #fff;
  text-decoration: none;
}

#mainNav .lang-switch .lang-btn.active {
  background: #fff;
  color: #cd1713 !important;
  border-color: #fff;
  opacity: 1;
  text-decoration: none;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  #mainNav .navbar-nav .nav-item:not(.lang-switch) > .nav-link {
    font-size: 106% !important;
  }

  #mainNav .lang-switch .lang-btn {
    font-size: 11px !important;
    min-width: 30px;
    padding: 5px 7px !important;
  }
}

@supports (display: grid) {
  .gallery-menu .button-group.filter-button-group{
    display: grid !important;
  }

  .gallery-menu .button-group.filter-button-group button{
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  #mainNav .navbar-brand {
    max-width: calc(100% - 88px);
    margin-right: 0;
  }

  #mainNav .navbar-brand img {
    width: 150px !important;
    max-width: 100%;
    height: auto;
  }

  #mainNav .navbar-toggler {
    margin-left: auto;
    padding: 6px 9px;
    font-size: 13px;
    white-space: nowrap;
  }

  .heading h1 {
    font-size: 34px;
    line-height: 1.15 !important;
  }

  .cd-headline.clip span {
    font-size: 18px;
  }

  .section {
    padding: 48px 0;
  }

  .contact_form {
    padding: 28px 18px;
  }

  .gallery-list .card {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation-duration: .01ms !important;
    animation-duration: .01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    -webkit-transition-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* =========================
   Partners + admin
   ========================= */
.trust-section .section-title p {
  max-width: 900px;
}

.trust-card {
  height: 100%;
  padding: 24px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
}

.trust-card i {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff1f1;
  color: #cd1713;
  line-height: 42px;
  text-align: center;
}

.trust-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.trust-card p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

.process-band {
  margin-top: 6px;
  padding: 24px;
  border-left: 4px solid #cd1713;
  background: #f7f7f7;
}

.process-band h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.process-steps {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
}

.process-steps span {
  display: inline-block;
  padding: 9px 12px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-weight: 700;
}

.quote-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.quote-panel {
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-left: 4px solid #cd1713;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.quote-copy {
  flex: 1 1 auto;
}

.quote-copy h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.quote-copy p {
  max-width: 780px;
  color: #666;
}

.quote-points {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
}

.quote-points > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #f8f8f8;
  color: #333;
  font-weight: 700;
}

.quote-points i {
  color: #cd1713;
}

.quote-actions {
  flex: 0 0 245px;
}

.quote-actions .sim-btn {
  width: 100%;
  margin-bottom: 10px;
}

.partners-section .section-title p {
  max-width: 860px;
}

.partners-grid {
  margin-top: 20px;
}

.partner-card {
  height: 100%;
  padding: 26px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-transition: box-shadow .2s ease, -webkit-transform .2s ease;
  transition: box-shadow .2s ease, transform .2s ease;
}

.partner-card:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14) !important;
}

.partner-card .ser-icon {
  margin-bottom: 16px;
  border-radius: 50%;
  background: #f8f8f8;
  -webkit-transition: background-color .2s ease, -webkit-transform .2s ease;
  transition: background-color .2s ease, transform .2s ease;
}

.partner-card:hover .ser-icon {
  background: #fff1f1;
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

.partner-card:hover .ser-icon i {
  color: #cd1713;
}

.partner-logo {
  max-width: 62px;
  max-height: 62px;
  width: auto;
  height: auto;
}

.partner-card h3 {
  font-size: 22px;
  font-weight: 700;
  padding-bottom: 10px;
}

.partner-card p {
  color: #777;
  line-height: 1.75;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

.partners-note {
  border-left: 4px solid #cd1713;
  background: #fff;
  padding: 22px 24px;
}

.admin-page {
  min-height: 100%;
  background: #f2f3f5;
  color: #333;
}

.admin-shell {
  padding: calc(var(--topPad) + 36px) 0 56px;
}

.admin-panel {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 22px;
}

.admin-panel h1,
.admin-panel h2,
.admin-panel h3 {
  padding-bottom: 8px;
}

.admin-grid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.admin-col {
  -ms-flex: 1 1 320px;
  flex: 1 1 320px;
  padding: 0 10px;
}

.admin-field {
  margin-bottom: 14px;
}

.admin-field label {
  display: block;
  font-weight: 700;
  color: #333;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 9px 10px;
  color: #333;
  background: #fff;
}

.admin-field textarea {
  min-height: 88px;
  resize: vertical;
}

.admin-actions {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-button {
  border: 1px solid #333;
  background: #333;
  color: #fff;
  border-radius: 4px;
  padding: 10px 14px;
  cursor: pointer;
}

.admin-button.secondary {
  background: #fff;
  color: #333;
}

.admin-button.danger {
  border-color: #cd1713;
  background: #cd1713;
}

.admin-status {
  min-height: 22px;
  margin-top: 12px;
  color: #555;
}

.admin-muted {
  color: #777;
  font-size: 13px;
}

.admin-preview-logo {
  max-width: 72px;
  max-height: 72px;
  display: block;
  margin-top: 8px;
}

.admin-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .trust-card,
  .partner-card {
    padding: 22px;
  }

  .process-band,
  .quote-panel,
  .partners-note {
    padding: 20px;
  }

  .quote-panel {
    display: block;
  }

  .quote-actions {
    margin-top: 18px;
  }

  .quote-points > span {
    width: 100%;
    border-radius: 8px;
  }
}
