/* FIDAtrader original homepage photographs (slides 1-3) provided by site owner, stored locally under assets/img. */

/* FIDAtrader static - Bootstrap 5.3.6 overrides. Self-hosted assets, no trackers or PHP. */

:root {
  --fida-orange: #f58220;
  --fida-orange-dark: #d96c13;
  --fida-navy: #162c47;
  --fida-ink: #273346;
  --fida-muted: #687586;
  --fida-background: #f6f8fb;
  --fida-border: #e6eaf0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color: var(--fida-ink);
  line-height: 1.7;
  font-size: 16px;
  background: white;
}

a {
  color: #a95409;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 8px;
  padding: 10px 20px;
  background: white;
  color: black;
  z-index: 9999;
}

.skip-link:focus {
  top: 8px;
}

.site-header {
  background: #fff;
  box-shadow: 0 3px 18px rgba(12,30,48,.07);
}

.site-header .navbar {
  min-height: 78px;
}

.navbar-brand {
  color: var(--fida-navy);
  font-size: 1.52rem;
  letter-spacing: -.045em;
  font-weight: 790;
  line-height: 1;
}

.navbar-brand:hover {
  color: var(--fida-navy);
}

.brand-word span {
  color: var(--fida-orange);
}

.brand-symbol {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-block;
  overflow: hidden;
}

.brand-symbol i,.brand-symbol b {
  position: absolute;
  width: 9px;
  height: 43px;
  top: -5px;
  transform: rotate(44deg);
  background: var(--fida-navy);
  display: block;
}

.brand-symbol i {
  left: 5px;
}

.brand-symbol b {
  left: 21px;
  transform: rotate(-44deg);
  background: var(--fida-orange);
}

.navbar-nav .nav-link {
  font-size: .92rem;
  color: var(--fida-navy);
  font-weight: 650;
  border: 0;
  text-decoration: none;
}

.navbar-nav .nav-link:hover,.navbar-nav .nav-link.active {
  color: var(--fida-orange);
}

.navbar-nav .btn-link {
  text-decoration: none;
}

.dropdown-menu {
  border: 1px solid var(--fida-border);
  box-shadow: 0 12px 28px rgba(4,22,40,.12);
  padding: .6rem;
  border-radius: 5px;
}

.dropdown-item {
  padding: .55rem 1rem;
  font-size: .94rem;
}

.dropdown-item.active,.dropdown-item:active {
  background: var(--fida-orange);
  color: #111;
}

.btn {
  font-weight: 700;
  border-radius: 3px;
}

.btn-brand {
  background: var(--fida-orange);
  border: 1px solid var(--fida-orange);
  color: #122036;
}

.btn-brand:hover,.btn-brand:focus {
  background: #e16f13;
  border-color: #e16f13;
  color: #071729;
}

.btn-outline-brand {
  border: 1px solid var(--fida-orange);
  color: #984601;
  background: transparent;
}

.btn-outline-brand:hover {
  background: var(--fida-orange);
  border-color: var(--fida-orange);
  color: #102031;
}

.btn:focus-visible,a:focus-visible,button:focus-visible {
  outline: 3px solid #3c81cc;
  outline-offset: 3px;
}

.hero-slide {
  min-height: min(630px,75vh);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

.hero-city {
  background-image: linear-gradient(90deg,rgba(5,25,50,.84),rgba(5,25,50,.37)),url('../img/sl1-bg_1673_740.jpg'),url('../img/hero-city.svg');
}

.hero-door {
  background-image: linear-gradient(90deg,rgba(5,25,50,.84),rgba(5,25,50,.28)),url('../img/sl2-bg_1665_740.jpg'),url('../img/hero-door.svg');
}

.hero-mountain {
  background-image: linear-gradient(90deg,rgba(5,25,50,.80),rgba(5,25,50,.26)),url('../img/sl3-bg_1657_740.jpg'),url('../img/hero-mountain.svg');
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 7rem;
}

.hero-slide h1,
  .hero-slide h2 {
  font-size: clamp(3rem,7vw,6rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1.04;
  max-width: 750px;
  text-shadow: 0 2px 10px rgba(0,0,0,.17);
}

.hero-slide p {
  font-size: clamp(1.3rem,2.1vw,2rem);
  line-height: 1.3;
  font-weight: 350;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-kicker,.eyebrow {
  display: inline-block;
  color: var(--fida-orange);
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .78rem;
}

.hero-kicker {
  color: #ffb071;
  margin-bottom: 1rem;
}

.carousel-control-prev,.carousel-control-next {
  width: 7%;
  min-width: 40px;
}

.carousel-indicators {
  bottom: 22px;
}

.carousel-indicators [data-bs-target] {
  height: 4px;
  width: 32px;
  border: 0;
}

.section-heading {
  font-size: clamp(1.8rem,3.3vw,2.7rem);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -.036em;
  color: var(--fida-navy);
  margin-bottom: 1.4rem;
}

.section-intro {
  max-width: 720px;
  margin: auto;
  color: var(--fida-muted);
  font-size: 1.12rem;
}

.feature-section {
  background: var(--fida-background);
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.feature-card {
  padding: 2.1rem;
  background: #fff;
  border: 1px solid #e9edf2;
  border-top: 3px solid transparent;
  box-shadow: 0 4px 22px rgba(24,38,56,.035);
  transition: transform .18s,border-color .18s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--fida-orange);
}

.feature-card h3 {
  font-size: 1.22rem;
  font-weight: 750;
  color: var(--fida-navy);
  margin: 1rem 0;
}

.feature-card p {
  font-size: .96rem;
  color: #586879;
  margin-bottom: 0;
}

.feature-number {
  font-size: 2rem;
  font-weight: 800;
  color: #edc49c;
}

.callout-section {
  background: #fff;
}

.preview-panel {
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg,#122d4d,#275d7c);
  position: relative;
  padding: 35px;
  box-shadow: 0 18px 35px rgba(16,36,62,.18);
}

.preview-line {
  position: absolute;
  inset: 25px 24px 40px;
  border: 1px solid #4c6a82;
  background: repeating-linear-gradient(to bottom,transparent 0 32px,#3e6279 33px);
}

.preview-bars {
  display: flex;
  gap: 13px;
  align-items: flex-end;
  height: 135px;
  position: relative;
  z-index: 1;
}

.preview-bars i {
  display: block;
  flex: 1;
  border-radius: 1px 1px 0 0;
  background: #fd9836;
  opacity: .84;
  height: 40%;
}

.preview-bars i:nth-child(2) {
  height: 63%;
}

.preview-bars i:nth-child(3) {
  height: 45%;
}

.preview-bars i:nth-child(4) {
  height: 77%;
}

.preview-bars i:nth-child(5) {
  height: 54%;
}

.preview-bars i:nth-child(6) {
  height: 92%;
}

.preview-bars i:nth-child(7) {
  height: 68%;
}

.preview-bars i:nth-child(8) {
  height: 83%;
}

.preview-bars i:nth-child(9) {
  height: 96%;
}

.preview-label {
  position: relative;
  display: block;
  color: #fff;
  font-size: .86rem;
  margin-top: 15px;
}

.page-banner {
  background: radial-gradient(circle at 88% 15%,#345773 0%,transparent 26%),linear-gradient(120deg,#142a46,#1f3e5e);
  color: white;
  padding: 4.3rem 0 4.5rem;
  border-bottom: 4px solid var(--fida-orange);
}

.page-banner h1 {
  font-weight: 760;
  letter-spacing: -.035em;
  font-size: clamp(2.2rem,5vw,3.8rem);
  margin: .4rem 0 0;
}

.breadcrumb {
  --bs-breadcrumb-divider: '›';
}

.breadcrumb a {
  color: #576983;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #7b8796;
}

.brand-card,.light-panel {
  background: #f5f8fb;
  padding: 2rem 2.3rem;
  border: 1px solid var(--fida-border);
  border-left: 4px solid var(--fida-orange);
  border-radius: 3px;
}

.brand-card img {
  max-width: 100%;
}

.light-panel p:last-child {
  margin-bottom: 0;
}

.metrics-strip {
  background: #152b47;
  color: #fff;
  border-radius: 4px;
  padding: 2.3rem .4rem;
}

.metrics-strip strong {
  display: block;
  font-size: clamp(1.6rem,4vw,2.5rem);
  line-height: 1.35;
  font-weight: 800;
}

.metrics-strip span {
  font-size: .85rem;
  color: #ced9e5;
  display: block;
}

.service-tabs .nav-link {
  color: var(--fida-navy);
  border-radius: 2px;
  font-weight: 700;
}

.service-tabs .nav-link.active,.nav-pills .show>.nav-link {
  background-color: var(--fida-orange);
  color: #152a43;
}

.content-tab-panel {
  background: #fff;
  border: 1px solid var(--fida-border);
  padding: 1.7rem;
  border-radius: 3px;
  min-height: 140px;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: .35rem 0 .35rem 1.8rem;
  position: relative;
}

.check-list li:before {
  content: '✓';
  color: var(--fida-orange-dark);
  position: absolute;
  left: .25rem;
  font-weight: 800;
}

.table {
  font-size: .93rem;
  border-color: #e7ebf0;
}

.table thead {
  --bs-table-bg: #173452;
  --bs-table-color: white;
}

.table td,.table th {
  padding: .8rem;
}

.pricing-card {
  border: 1px solid #e6eaf0;
  border-top: 4px solid #a9b2be;
  background: white;
  padding: 2rem;
  box-shadow: 0 12px 24px rgba(17,35,54,.035);
}

.pricing-card.featured {
  border-top-color: var(--fida-orange);
  box-shadow: 0 15px 30px rgba(17,35,54,.1);
}

.pricing-card h2 {
  font-weight: 700;
  color: var(--fida-navy);
}

.price {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--fida-navy);
  margin: 1rem 0;
  letter-spacing: -.05em;
}

.price span {
  font-size: 1.2rem;
  margin-right: .3rem;
}

.pricing-card .check-list {
  font-size: .9rem;
}

.nav-tabs .nav-link {
  color: var(--fida-navy);
  font-weight: 700;
}

.nav-tabs .nav-link.active {
  border-top: 3px solid var(--fida-orange);
  color: #9d4907;
}

.credential {
  padding: 10px 15px;
  border: 1px solid #dee5ed;
  background: white;
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-weight: 800;
  letter-spacing: .06em;
}

.number-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.number-list li {
  counter-increment: steps;
  padding: .6rem 0 .6rem 3.2rem;
  position: relative;
}

.number-list li::before {
  content: counter(steps);
  position: absolute;
  top: .4rem;
  left: 0;
  width: 2rem;
  height: 2rem;
  text-align: center;
  line-height: 2rem;
  background: #fcebd9;
  color: #9e530b;
  border-radius: 50%;
  font-weight: 800;
}

.accordion-button {
  font-weight: 690;
  color: var(--fida-navy);
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--fida-navy);
  background: #f8f4ed;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

.accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(245,130,32,.25);
}

.accordion-item {
  border-color: #e5e9ee;
}

.accordion-body {
  line-height: 1.75;
}

.office-card {
  text-align: center;
  padding: 1.5rem 1.2rem;
  background: #f9fafc;
  border: 1px solid var(--fida-border);
  height: 100%;
}

.office-card img {
  height: 150px;
  width: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.2rem;
}

.office-card h3 {
  font-size: 1.1rem;
  color: var(--fida-navy);
  font-weight: 800;
  letter-spacing: .1em;
}

.office-card p {
  color: var(--fida-muted);
  font-size: .94rem;
}

.contact-card {
  border: 1px solid var(--fida-border);
  padding: 2.1rem;
  border-top: 3px solid var(--fida-orange);
  height: 100%;
}

.contact-card h3 {
  font-size: 1.25rem;
  color: var(--fida-navy);
  font-weight: 750;
}

.contact-card small {
  font-size: .7rem;
  display: block;
  color: #687586;
}

.legal-copy {
  max-width: 930px;
  margin: 0 auto;
  padding: 1rem 0;
}

.legal-copy h1 {
  font-size: 2rem;
  font-weight: 750;
  color: var(--fida-navy);
  margin-bottom: 1.4rem;
}

.legal-copy h2 {
  font-size: 1.23rem;
  font-weight: 750;
  color: var(--fida-navy);
  margin-top: 2.2rem;
}

.legal-copy p,.legal-copy li {
  font-size: .96rem;
}

.site-footer {
  background: #11243d;
  color: white;
  margin-top: 4rem;
}

.site-footer h2 {
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: .62rem;
  line-height: 1.4;
}

.site-footer a {
  text-decoration: none;
  color: #c4d0df;
  font-size: .9rem;
}

.site-footer a:hover {
  color: #ffae72;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -.04em;
}

.footer-brand span {
  color: var(--fida-orange);
}

.text-footer {
  font-size: .92rem;
  color: #b9c8d8;
}

.footer-separator {
  border-color: #506278;
  margin-top: 2.2rem;
}

.footer-bottom {
  font-size: .76rem;
  color: #9dacc0;
}

.footer-mail {
  overflow-wrap: anywhere;
}

.modal-title {
  color: var(--fida-navy);
  font-weight: 730;
}

.modal-body {
  line-height: 1.75;
}

.modal-footer {
  border-top: 1px solid #edf0f4;
}

@media (max-width:767px) {
  .site-header .navbar {
    min-height: 68px;
  }
  .hero-slide {
    min-height: 500px;
  }
  .hero-slide-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .hero-slide h1,
  .hero-slide h2 {
    font-size: clamp(2.5rem,11vw,4rem);
  }
  .hero-slide p {
    font-size: 1.2rem;
  }
  .carousel-control-prev,.carousel-control-next {
    width: 10%;
  }
  .page-banner {
    padding: 3rem 0;
  }
  .feature-section {
    padding-top: 3.3rem !important;
    padding-bottom: 3.3rem !important;
  }
  .feature-card {
    padding: 1.6rem;
  }
  .brand-card,.light-panel {
    padding: 1.5rem;
  }
  .table {
    font-size: .8rem;
  }
  .table td,.table th {
    padding: .5rem;
  }
}

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

/* Versione 3 - identita visiva: loghi PNG ufficiali con trasparenza, forniti dal proprietario. */

.navbar-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 1rem;
  padding: 0;
}

.header-logo {
  display: block;
  width: clamp(180px,19vw,235px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1rem;
}

.footer-logo {
  display: block;
  width: min(260px,100%);
  height: auto;
  object-fit: contain;
}

.footer-logo-link:hover {
  opacity: .93;
}

@media (max-width:1199.98px) and (min-width:992px) {
  .header-logo {
    width: 195px;
  }
  .navbar-nav .nav-link {
    font-size: .88rem;
  }
}

@media (max-width:575.98px) {
  .header-logo {
    width: min(205px,65vw);
  }
  .footer-logo {
    width: min(240px,75vw);
  }
}

/* Homepage: Google Material Icons nella griglia dei sei vantaggi. */

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff1e4;
  color: #bd5a0a;
}

.feature-icon .material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 36px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 575.98px) {
  .feature-icon {
    width: 58px;
    height: 58px;
  }
  .feature-icon .material-icons {
    font-size: 32px;
  }
}

/* v5: central 6 cards centered in all viewports. */

.feature-section .feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-section .feature-card .feature-icon {
  margin-inline: auto;
  flex-shrink: 0;
}

.feature-section .feature-card h3 {
  width: 100%;
  text-align: center;
}

.feature-section .feature-card p {
  max-width: 33ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* v5: slightly reduced slider typography, preserving responsive scaling. */

.hero-slide h1,
  .hero-slide h2 {
  font-size: clamp(2.65rem, 5.25vw, 4.7rem);
  letter-spacing: -.045em;
  max-width: 780px;
}

.hero-slide p {
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
}

@media (max-width: 767px) {
  .hero-slide h1,
  .hero-slide h2 {
    font-size: clamp(2.15rem, 8.3vw, 3.25rem);
  }
  .hero-slide p {
    font-size: 1.12rem;
  }
}

/* Le icone Material SVG vengono mostrate localmente senza font esterni. */

.feature-icon .material-icon-fallback {
  display: block;
  width: 36px;
  height: 36px;
}

.feature-icon .material-icons {
  display: none;
}

@media (max-width: 575.98px) {
  .feature-icon .material-icon-fallback {
    width: 32px;
    height: 32px;
  }
}
