@charset "UTF-8";
/*
Theme Name: Sordo Auto Theme
Theme URI:
Author: 
Author URI:
Description: Starter Theme with Font Awesome and Bootstrap 5
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, sticky-post, translation-ready
Text Domain: nx

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* General
-------------------------------------------------------- */

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-color: #f5f9fd;
  min-height: 100vh;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  font-family: "museo-sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.main-content {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}



main {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  overflow-x: hidden !important;
}

.main-loaded {
  opacity: 1;
}


:root {
  --blue: #1d70b7;
  /* Primary Blue from Sordo Auto */
  --dark-blue: #003366;
  /* Deep Marine Blue */
  --light-gray: #f8f9fa;
  --light-blue: #F5B800;
  /* Yellow accent – coerente con il logo */
  --yellow: #F5B800;
  --acqua: #F5B800;
  --white: #fff;
  --gray: #6c757d;
}



/* Colori
-------------------------------------------------------- */
a {
  color: var(--dark-blueblue);
  text-decoration: none;
}

a.nav-link:hover:not(a.navbar-brand),
a:hover:not(.btn.btn-primary) {
  color: var(--light-blue);
}


.color-primary {
  color: var(--dark-blue) !important;
}

.color-secondary {
  color: var(--light-blue) !important;
}

.color-blue {
  color: var(--blue);
}

.color-light-blue {
  color: var(--light-blue);
}

.color-yellow{
	color:var(--yellow);
}


.bg-primary {
  background: var(--dark-blue) !important;
}

.bg-secondary {
  background: var(--light-blue) !important;
}

.bg-blue {
  background-color: var(--blue);
}

.bg-pattern {
  position: relative;
  background-color: var(--dark-blue);
  overflow: hidden;
  z-index: 1;
}

.bg-pattern::before,
.bg-pattern::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1000px;
  height: 100%;
  background-image: url('/wp-content/uploads/pattern-2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
  filter: opacity(0.1);
  transform: rotate(75deg);
}

.bg-pattern-2 {
  position: relative;
  background-color: var(--light-blue);
  overflow: hidden;
  z-index: 1;
}

.bg-pattern-2::before,
.bg-pattern-2::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1000px;
  height: 100%;
  background-image: url('/wp-content/uploads/pattern-3.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
  filter: opacity(0.5);
  transform: rotate(0deg);
}

.bg-pattern::before,
.bg-pattern-2::before {
  left: -400px;
}

.bg-pattern::after,
.bg-pattern-2::after {
  right: -400px;
}

.bg-gradient {
  background: linear-gradient(75deg, rgba(29, 112, 183, 0.8) 0%, rgba(3, 60, 91, 0.8) 40%);
}

.bg-gradient-2 {
  background: linear-gradient(75deg, rgba(29, 112, 183, 1) 0%, rgba(3, 60, 91, 1) 40%);
}


/* Typography
-------------------------------------------------------- */


h1 {
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

@media (min-width: 1200px) {
  h2 {
    font-size: 3rem;
  }
}

@media (max-width: 1199px) {
  h2 {
    font-size: 35px;
  }
}

body,
p,
li {
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 17px;
  color: var(--dark-blue);
  font-weight: 400;
}

.pre-title {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.text-white p {
  color: #fff;
}

/* Helpers
-------------------------------------------------------- */
@media (min-width: 768px) {
  .py-custom {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .pt-custom {
    padding-top: 100px;
  }

  .pb-custom {
    padding-bottom: 100px;
  }
}

@media (max-width: 767px) {
  .py-custom {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .pt-custom {
    padding-top: 50px;
  }

  .pb-custom {
    padding-bottom: 50px;
  }
}

.border-primary {
  border: 1px solid var(--dark-blue) !important;
}

/* --- IL DIVISORE SVG --- */
.curved-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.curved-divider svg {
  display: block;
  width: 100%;
  height: 100px;
}

.curve-fill {
  fill: var(--dark-blue);
}


/* Animazioni
-------------------------------------------------------- */
.fade-in,
.nascosto {
  opacity: 0;
}

.fade-in.show,
.visibile {
  opacity: 1 !important;
  transition: opacity 1s ease-in;
}

/* Buttons
-------------------------------------------------------- */

.btn.btn-primary,
.btn.btn-secondary {
  padding: 12px 25px;
  font-size: 15px;
  letter-spacing: 0.5px;
  font-weight: 500;
  border-radius: 50px;

  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease;

  &.btn-sm {
    padding: 8px 20px;
    font-size: 16px;
  }
}

.btn.btn-primary::before,
.btn.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-in-out;
  z-index: -1;
}

.btn.btn-primary:hover::before,
.btn.btn-secondary:hover::before {
  transform: scaleX(1);
}

.btn.btn-primary {
  background: var(--dark-blue) !important;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn.btn-primary::before {
  background-color: var(--white);
}

.btn.btn-primary:hover {
  background: var(--white) !important;
  color: var(--dark-blue) !important;
}

.btn.btn-secondary {
  background: var(--light-blue) !important;
  color: var(--dark-blue);
  border: 1px solid var(--dark-blue);
}

.btn.btn-secondary::before {
  background-color: var(--white);
}

.btn.btn-secondary:hover {
  color: var(--dark-blue) !important;
}


/* Header

-------------------------------------------------------- */

.navbar {
  -webkit-transition-duration: 0.6s;
  transition-duration: 0.6s;
  -webkit-transition-timing-function: ease;
  transition-timing-function: ease;
}

.navbar .nav-link,
.navbar .nav-link.show {
  color: var(--white);

  &.active {
    color: var(--white);
  }
}

.navbar-nav .dropdown-item {
  color: var(--dark-blue);
  font-size: 16px;
  min-width: 200px;
  transition: ease 0.4s;

  &.active {
    color: var(--dark-blue);
    background: var(--white);
  }

  &:hover {
    background-color: var(--dark-blue);
    color: var(--white) !important;
  }
}

.menu-icon {
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

.navbar-transparent.is-scrolled .navbar {
  background: var(--dark-blue);
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);

  & .nav-link {
    color: var(--light-gray);
  }
}

.navbar-transparent.is-scrolled .navbar-toggler-icon,
.navbar-transparent.is-scrolled .menu-icon {
  -webkit-filter: none;
  filter: none;
}

.navbar:has(.navbar-collapse.show, .navbar-collapse.collapsing) {
  background: var(--light-gray) !important;
}

.navbar:has(.navbar-collapse.show) img,
.navbar:has(.navbar-collapse.show) .navbar-toggler-icon {
  -webkit-filter: none !important;
  filter: none !important;
}


.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-brand img {
  max-width: 230px;
  padding: 5px 0px;
}

/* Centro assoluto dei link navbar su desktop */
@media (min-width: 1200px) {
  .navbar .container-fluid {
    position: relative;
  }

  .navbar .navbar-collapse {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
  }

  .navbar .navbar-collapse .navbar-nav {
    flex-direction: row;
  }
}

@media (max-width: 1199px) {
  .navbar-brand img {
    max-width: 120px;
  }

  .navbar-nav {
    overflow-y: auto;
  }

  .navbar-toggler {
    border: none;
    padding: 0;
  }

  .navbar-toggler-icon {
    font-size: 25px;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
  }

  body:has(.dropdown-menu.show)>.modal-overlay,
  body:has(.navbar-collapse.collapsing, .navbar-collapse.collapse.show)>.modal-overlay {
    display: block !important;
  }

  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
  }

  .dropdown-menu.show {
    border: none;
    background: var(--light-gray);
  }
}


/* Megamenu & Navigazione
-------------------------------------------------------- */
.nav-link:focus-visible {
  -webkit-box-shadow: none;
  box-shadow: none;
  color: transparent;
}


/* Footer
-------------------------------------------------------- */

.icona-whatsapp i {
  font-size: 50px;
  color: #fff;
  text-align: center;
}

.icona-whatsapp {
  background: #43cc51;
  position: fixed;
  z-index: 9999;
  width: 70px;
  min-height: 70px;
  bottom: 0;
  right: 0;
  height: 60px;
  border-radius: 50px;
  margin-bottom: 15px;
  margin-right: 15px;
}

@media (max-width: 1199px) {
  .icona-whatsapp {
    width: 50px;
    min-height: 50px;
    height: 50px;
  }

  .icona-whatsapp i {
    font-size: 35px;
    line-height: 50px;
  }
}

.logo-footer {
  max-width: 300px;
}

footer h3 {
  font-size: 20px;

}

footer p {
  font-size: 15px;
}

footer .nav-link {
  padding: 3px 0px;
}

/* homepage
-------------------------------------------------------- */

.hero {
  height: 90vh;
  position: relative;
  background: var(--dark-blue);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Hero specifico della homepage – sfondo scuro */
.hero-home {
  background-image:
    linear-gradient(135deg, rgba(0, 20, 60, 0.97) 0%, rgba(0, 51, 102, 0.92) 60%, rgba(29, 112, 183, 0.85) 100%);
  background-color: var(--dark-blue);
}

.hero h1 {
  font-size: clamp(40px, 8vw, 100px);
}

/* Carousel Veicoli
-------------------------------------------------------- */
.veicoli-swiper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.veicoli-swiper .swiper-slide {
  overflow: hidden;
}

.veicoli-swiper .swiper-slide img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
}

.veicoli-swiper .swiper-button-prev,
.veicoli-swiper .swiper-button-next {
  color: var(--white);
  background: rgba(0, 51, 102, 0.7);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.veicoli-swiper .swiper-button-prev::after,
.veicoli-swiper .swiper-button-next::after {
  font-size: 14px;
  font-weight: 900;
}

.veicoli-swiper .swiper-button-prev:hover,
.veicoli-swiper .swiper-button-next:hover {
  background: var(--light-blue);
}

.veicoli-swiper .swiper-pagination-bullet-active {
  background: var(--light-blue);
}


/*Cards Overlap */
.cards-overlap-container {
  position: relative;
  margin-top: -300px;
}

.service-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  border: none;
}

.service-card:hover {
  transform: translateY(-10px);
}

/* carosello servizi */
.swiper-slide p {
  font-size: 15px;
}

.partner-controls button {
  background: var(--light-blue);
  padding: 0px 20px;
  border: none;
  font-size: 2rem;
  color: var(--dark-blue);
  cursor: pointer;
}

.partner-controls button:hover {
  background: var(--white);
  color: var(--dark-blue);
  transition: ease 0.4s;
}

.hover-card-bg {
  background-size: cover;
  background-position: 100% center;
  transition: transform 0.6s ease;
  min-height: 64vh;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(3, 60, 91, 0) 50%, rgba(223, 223, 223, 0.8) 100%);
  z-index: 1;
  transition: background 0.6s ease;

  & h3 {
    font-weight: 400;
  }
}

.card-overlay-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(3, 60, 91, 0) 50%, rgba(3, 60, 91, 0.8) 100%);
  z-index: 1;
  transition: background 0.6s ease;

  & h3 {
    font-weight: 400;
  }
}

.btn-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

/* --- EFFETTI HOVER --- */

.hover-card-bg:hover .btn-wrapper {
  max-height: 100px;
  opacity: 1;
  transform: translateY(0);
}

/* Intestazione
-------------------------------------------------------- */
.page-header {
  height: 70vh;
}

.page-header-single {
  height: 60vh;
}

.page-header-single a {
  color: #fff;
}

@media (min-width: 768px) {
  .page-header span {
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 700;
  }

  .page-header h1 {
    font-size: clamp(50px, 7vw, 70px);
  }

  .page-header p {
    margin-bottom: 80px;
    margin-top: 20px;
  }

  .page-header-single h1 {
    font-size: clamp(25px, 2vw, 40px) !important;
  }
}

@media (max-width: 767px) {
  .page-header h1 {
    font-size: 35px;
    margin-top: 60px;
  }

  .page-header {
    min-height: 70vh;
  }
}

/* Chi siamo
-------------------------------------------------------- */
.timeline-vertical {
  position: relative !important;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-vertical::after {
  content: '';
  position: absolute !important;
  width: 4px;
  background-color: var(--blue);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-row {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--blue);
  top: 25px;
  z-index: 1;
}

/* Correzione pallino per quelli a destra */
.timeline-right .timeline-dot {
  left: -10px;
}

/* Stile della card bianca */
.timeline-content {
  background: #fff;
  border-radius: 6px;
  position: relative;
}

.timeline-text p {
  font-size: 15px;
}

@media screen and (max-width: 767px) {
  .timeline-vertical::after {
    left: 31px;
  }

  .timeline-row {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-left,
  .timeline-right {
    left: 0;
    text-align: left;
  }

  .timeline-dot,
  .timeline-right .timeline-dot {
    left: 21px;
    right: auto;
  }
}


/* pagina base */

.pagina-base h2:not(.accordion-header) {
  padding-top: 50px;
}

.pagina-base h3:not(.accordion-header) {
  padding-top: 40px;
}

.pagina-base .accordion-header {
  font-size: 22px !important;
  font-weight: 500;
}

/* Under contruction
-------------------------------------------------------- */
.under-construction {
  height: 100vh;
}

@media (min-width: 768px) {
  .under-construction h1 {
    font-size: 3em;
  }

  .under-construction p {
    font-size: 1em;
  }
}

@media (max-width: 767px) {
  .under-construction h1 {
    font-size: 35px;
    font-weight: bold;
  }

  .under-construction p {
    font-size: 15px;
    font-weight: 200;
  }
}


/* lavora con noi
-------------------------------------------------------- */

.wpcf7 .wpcf7-select {
  width: 100%;
  font-size: 15px;
}

.wpcf7 .wpcf7-sele.container {
  width: 100%;
}


/* News
-------------------------------------------------------- */
.card-news a {
  text-decoration: none;
  font-size: 15px;
  color: #fff;
}

.card-news .card-meta {
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.card-news p {
  font-size: 15px;
  color: var(--bs-gray-900) !important;
}

.card-news .card-title {
  font-size: 22px;
  color: var(--blue);
}

.card-news span {
  color: var(--blue);
}

.form-control:focus {
  border-color: transparent;
  box-shadow: none;
}

.icon-search {
  border: none;
  font-size: 26px;
  margin-right: 10px;
}

/* articolo */
.paragrafo-titolo {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.paragrafo-testo strong,
.paragrafo-testo b {
  font-weight: 700 !important;
  color: inherit;
}

.zoom-img {
  transition: transform 0.5s ease;
  transform-origin: center center;
}

.card-news:hover .zoom-img {
  transform: scale(1.1);
}

/* Contatti
-------------------------------------------------------- */
.wpcf7-form-control {
  height: 50px;
  width: 100%;
}

textarea.form-control {
  height: auto;
}

.wpcf7 p {
  font-size: 15px;
  color: var(--dark-blue);
}

.wpcf7 label {
  width: 100%;
  font-size: 16px;
  color: var(--dark-blue);
}

.wpcf7-submit {
  background: var(--blue) !important;
}


/* Pagine archivio e ricerca
-------------------------------------------------------- */
.page-archive {
  padding-top: 100px;
}

/* Comments
-------------------------------------------------------- */
#comments {
  margin-bottom: 40px;
}

.comments {
  padding-top: 40px;
}

.comments textarea {
  width: 100%;
}

.comments label {
  min-width: 80px;
}

.comments ul,
.comments ol {
  list-style-type: none;
}

.comment-author img {
  border-radius: 999px;
  width: 50px;
}

.comment .reply {
  border-bottom: 1px solid #ccc;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

/* Input & textarea
-------------------------------------------------------- */
input,
textarea {
  padding: 10px 10px;
  border: 1px solid #ccc;
}

/* Widgets
-------------------------------------------------------- */
.widget_search .screen-reader-text {
  display: block;
}

.widget_search #s {
  width: 70%;
  float: left;
}

.widget_search #searchsubmit {
  width: 30%;
  float: left;
  background: #fff;
}

/* pagination
-------------------------------------------------------- */

.page-numbers {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #ddd;
  margin-right: 4px;
}

/* general wordpress style
-------------------------------------------------------- */
.post img {
  max-width: 100%;
  height: auto;
}

/* WordPress Core Styles
-------------------------------------------------------------- */
.gallery-caption {
  padding: 5px;
  font-size: 10px;
}

.bypostauthor {
  border-left: 3px solid #ddd;
  padding-left: 20px;
}

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  white-space: nowrap;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/* Sordo Auto Custom Styles */
.service-card-custom {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border-radius: 15px;
  padding: 30px;
}

.service-card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.step-card {
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  height: 100%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--light-blue);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 0.25rem rgba(0, 167, 157, 0.25);
}

#contactForm label {
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.hover-up {
  transition: all 0.3s ease;
}

.hover-up:hover {
  transform: translateY(-5px);
}

#contatti .list-unstyled li {
  font-size: 1.1rem;
  color: var(--dark-blue);
}

/* CF7 form senza card wrapper */
.contatti-form-wrapper .wpcf7-form {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contatti-form-wrapper .wpcf7-form p {
  margin-bottom: 1rem;
}

.contatti-form-wrapper input,
.contatti-form-wrapper select,
.contatti-form-wrapper textarea {
  width: 100%;
  border: 1px solid #dee2e6;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.contatti-form-wrapper textarea {
  border-radius: 1rem;
  min-height: 110px;
  resize: vertical;
}

.contatti-form-wrapper input:focus,
.contatti-form-wrapper select:focus,
.contatti-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.15);
}

.contatti-form-wrapper .wpcf7-submit {
  background: var(--dark-blue) !important;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 30px;
  font-weight: 600;
  width: 100%;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contatti-form-wrapper .wpcf7-submit:hover {
  background: var(--light-blue) !important;
  color: var(--dark-blue);
}

#realta .fa-check {
  font-size: 1.2rem;
  margin-top: 5px;
}

.bg-pattern {
  background-color: var(--dark-blue);
  position: relative;
  z-index: 1;
}

.service-card-custom i {
  display: block;
  margin-bottom: 20px;
}

/* Fix mobile menu visibility */
@media (max-width: 1199px) {
  .navbar-collapse {
    background: #fff;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link {
    color: var(--dark-blue) !important;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 51, 102, 0.05);
  }
}

/* =========================================================
   RESPONSIVE – Tablet & Mobile
   ========================================================= */

/* Tablet (768px – 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-home {
    min-height: 75vh;
    padding-top: 80px;
  }

  .hero h1 {
    font-size: clamp(32px, 5vw, 56px);
  }

  .veicoli-swiper .swiper-slide img {
    height: 300px;
  }

  #realta .row {
    flex-direction: column;
  }

  .step-card {
    margin-bottom: 1rem;
  }

  #contatti .row {
    flex-direction: column;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {

  /* Hero */
  .hero,
  .hero-home {
    min-height: 100svh;
    height: auto;
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 44px);
  }

  .hero .lead {
    font-size: 15px;
  }

  .hero .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Carousel veicoli */
  .veicoli-swiper .swiper-slide img {
    height: 240px;
  }

  /* Sezione "Come funziona" – steps verticali */
  #come-funziona .row,
  .py-custom .row.g-4 {
    flex-direction: column;
  }

  .step-card {
    margin-bottom: 1.25rem;
  }

  /* Sezione contatti */
  #contatti .col-lg-6 {
    width: 100%;
  }

  /* CF7 form */
  .wpcf7-form-control {
    font-size: 15px;
  }

  /* Header logo su mobile */
  .navbar-brand img {
    max-width: 110px !important;
  }

  /* Container padding ridotto */
  .container-fluid.px-5 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Footer layout colonna */
  footer .row {
    flex-direction: column;
  }

  footer .col-lg-5,
  footer .col-lg-3 {
    width: 100%;
    margin-bottom: 2rem;
  }

  .logo-footer {
    max-width: 180px;
  }

  /* Cards servizi */
  .service-card-custom {
    margin-bottom: 1rem;
  }

  /* Sezione perché Sordo Auto */
  #perche .col-sm-6 {
    width: 100%;
  }

  /* Curve divider scalato */
  .curve-divider svg {
    height: 50px;
  }
}