/*
Theme Name: Travelkit
Theme URI: http://themeum.com/wordpress/travelkit
Author: Themeum
Author URI: http://themeum.com/
Description: Multipurpose Travel & Tour WordPress Theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: right-sidebar, two-columns
Text Domain: travelkit
*/

@font-face {
    font-family: "travel";
    src:url("fonts/travel.eot");
    src:url("fonts/traveld41d.eot?#iefix") format("embedded-opentype"),
    url("fonts/travel.woff") format("woff"),
    url("fonts/travel.ttf") format("truetype"),
    url("fonts/travel.svg#travel") format("svg");
    font-weight: normal;
    font-style: normal;
}

[data-icon]:before {
  font-family: "travel" !important;
  content: attr(data-icon);
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
  font-family: "travel" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-vehicles:before {
  content: "\61";
}
.icon-location:before {
  content: "\66";
}
.icon-hotel:before {
  content: "\62";
}
.icon-flight:before {
  content: "\63";
}


.bg-contact input[type=text], input[type="email"], input[type="password"], select, textarea {
  background: #eee;
  border-radius: 4px;
}
.contact-submit input[type=submit] {
    background: #FF6633;
    padding: 10.5px 30px;
    border: none;
    color: #fff;
}
.site-content .wpb_gmaps_widget .wpb_wrapper {
     padding: 0px !important;
}
.site-content .vc_cta3-content-header h2{
  font-size: 20px;
  font-weight: 200;
}
.site-content .vc_icon_element-inner {
  font-size: 20px;
}
.contact-submit input[type=submit]:hover,
.contact-submit input[type=submit]:focus {
  background: #FF6633;
}

.travelkit-navbar-brand{
  padding: 15px 0;
  display: block;
}
.travelkit-navbar-brand h1{
  font-size: 25px;
}

.home.blog .site-header{
  border-bottom: 1px solid #eaeaea;
}


/* themeum icon listing */

.atmosphere-content ul{
      margin: 0;
    padding: 0;
}
.atmosphere-content ul li {
    font-size: 16px;
    color: #9a9a9a;
    display: inline-flex;
    list-style: none;

}

.atmosphere-content ul li span {
    float: left;
    padding-left: 18px;
    /*width: 95%;*/
}

.atmosphere-content ul li i {
    float: left;
    color: #92278f;
    margin-top: 6px;
}
.atmosphere-content ul li a:hover {
    color: #01a1dc !important;
}
/* end icon listing */


.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; margin: 0;}
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 8px 5px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 40%; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
.ui-timepicker-div .ui_tpicker_unit_hide{ display: none; }

.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input {background: none; color: inherit; border: none; outline: none; width: 95%; padding: 0; font-weight: 600;}
.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input:focus { border-bottom-color: #aaa; }
.ui-timepicker-div dd.ui_tpicker_hour,.ui-timepicker-div dd.ui_tpicker_minute{ background: #ddd; border-radius: 10px; height: 3px;margin-bottom: 20px; }
.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 40% 10px 10px; }

/* Shortened version style */
.ui-timepicker-div.ui-timepicker-oneLine { padding-right: 2px; }
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time,
.ui-timepicker-div.ui-timepicker-oneLine dt { display: none; }
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time_label { display: block; padding-top: 2px; }
.ui-timepicker-div.ui-timepicker-oneLine dl { text-align: right; }
.ui-timepicker-div.ui-timepicker-oneLine dl dd,
.ui-timepicker-div.ui-timepicker-oneLine dl dd > div { display:inline-block; margin:0; }
.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_minute:before,
.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_second:before { content:':'; display:inline-block; }
.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_millisec:before,
.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_microsec:before { content:'.'; display:inline-block; }
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide,
.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide:before{ display: none; }

/* Component containers
----------------------------------*/

.ui-widget {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.ui-widget .ui-widget {
  font-size: 13px;
}

.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: inherit;
}


/* Interaction states
----------------------------------*/

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
   color: #333333;
   background-color: #ffffff;
   font-weight: normal;
   border: 1px solid #cccccc;
}

.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited {
  color: #555555;
  text-decoration: none;
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
  color: #333333;
    background-color: #ebebeb;
    border-color: #adadad;
  text-decoration: none;
}

.ui-state-hover a,
.ui-state-hover a:hover,
.ui-state-hover a:link,
.ui-state-hover a:visited {
  color: #333333;
  text-decoration: none;
}
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
  border: 1px solid #adadad;
  font-weight: normal;
  color: #333333;
}

.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
  color: #333333;
  text-decoration: none;
}

.ui-widget :active {
  outline: none;
}

/* Interaction Cues
----------------------------------*/

.ui-state-highlight,
.ui-state-error,
.ui-state-default {
  position: relative;
  border-width: 1px;
  border-style: solid;
}

.ui-state-highlight p,
.ui-state-error p,
.ui-state-default p {
  font-size: 13px;
  font-weight: normal;
  line-height: 18px;
  margin:7px 15px;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
  color: #3a87ad;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a,
.ui-widget-header .ui-state-highlight a {
  color: #2d6987;
}

.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
  color: #b94a48;
    background-color: #f2dede;
    border-color: #eed3d7;
}

.ui-state-error a,
.ui-widget-content .ui-state-error a,
.ui-widget-header .ui-state-error a {
  color: #953b39;
}

.ui-state-error-text,
.ui-widget-content .ui-state-error-text,
.ui-widget-header .ui-state-error-text {
  color: #953b39;
}

.ui-priority-primary,
.ui-widget-content .ui-priority-primary,
.ui-widget-header .ui-priority-primary {
  font-weight: bold;
}

.ui-priority-secondary,
.ui-widget-content .ui-priority-secondary,
.ui-widget-header .ui-priority-secondary {
  opacity: .7;
  filter:Alpha(Opacity=70);
  font-weight: normal;
}

.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
  opacity: .35;
  filter:Alpha(Opacity=35);
  background-image: none;
}

.ui-state-disabled .ui-icon {
  filter:Alpha(Opacity=35); /* For IE8 - See #6059 */
}


.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  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; 
}

.gallery-caption{
  font-size: 12px;
}
.bypostauthor{
  font-size: 12px;
}

/* Misc visuals
----------------------------------*/

/* Corner radius */

.ui-corner-all {
  -webkit-border-radius: 4px; /* Safari 4 */
  -moz-border-radius: 4px; /* Firefox 3.6 */
  border-radius: 4px;
}

.ui-corner-top,
.ui-corner-left,
.ui-corner-tl {
  -webkit-border-top-left-radius: 4px; /* Safari 4 */
  -moz-border-radius-topleft: 4px; /* Firefox 3.6 */
  border-top-left-radius: 4px;
}

.ui-corner-top,
.ui-corner-right,
.ui-corner-tr {
  -webkit-border-top-right-radius: 4px; /* Safari 4 */
  -moz-border-radius-topright: 4px; /* Firefox 3.6 */
  border-top-right-radius: 4px;
}

.ui-corner-bottom,
.ui-corner-left,
.ui-corner-bl {
  -webkit-border-bottom-left-radius: 4px; /* Safari 4 */
  -moz-border-radius-bottomleft: 4px; /* Firefox 3.6 */
  border-bottom-left-radius: 4px;
}

.ui-corner-bottom,
.ui-corner-right,
.ui-corner-br {
  -webkit-border-bottom-right-radius: 4px; /* Safari 4 */
  -moz-border-radius-bottomright: 4px; /* Firefox 3.6 */
  border-bottom-right-radius: 4px;
}




.ui-slider {
  position: relative;
  text-align: left;
}

/* For IE8 - See #6727 */
.ui-slider.ui-state-disabled .ui-slider-handle,
.ui-slider.ui-state-disabled .ui-slider-range {
  filter: inherit;
}

.ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  border-radius: 15px;
  cursor: default;
  background: #FF6633;
  border: none;
  -webkit-box-shadow: 0 2px 2px rgba(0,0,0,.2);
  box-shadow: 0 2px 2px rgba(0,0,0,.2);
  -webkit-transition: transform .3s;
  transition: transform .3s;
}
.ui-slider .ui-slider-handle:hover {
  -webkit-transform: scale(1.18);
  transform: scale(1.18);
  cursor: pointer;
}
.ui-slider .ui-slider-handle:focus {
  outline: none;
}
.ui-datepicker-buttonpane{
  padding-top: 20px;
}
.ui-datepicker-buttonpane button{
  padding: 2px 15px;
  margin-right: 8px;
  font-weight: 500 !important;
  -webkit-transition: .3s;
  transition: .3s;
}
.ui-datepicker-buttonpane button:hover{
  background-color: #FF6633;
  border-color: #FF6633;
  color: #fff;
}
.ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  font-size: .7em;
  display: block;
  border: 0;
  background-position: 0 0;
  color: #ffffff;
  background-color: #0e90d2;
  background-image: -moz-linear-gradient(top, #149bdf, #0480be);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be));
  background-image: -webkit-linear-gradient(top, #149bdf, #0480be);
  background-image: -o-linear-gradient(top, #149bdf, #0480be);
  background-image: linear-gradient(to bottom, #149bdf, #0480be);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: width 0.6s ease;
  -moz-transition: width 0.6s ease;
  -o-transition: width 0.6s ease;
  transition: width 0.6s ease;
}

.ui-slider-horizontal {
  height: .8em;
}

.ui-slider-horizontal .ui-slider-handle {
  top: -6px;
  margin-left: -.6em;
}

.ui-slider-horizontal .ui-slider-range {
  top: 0;
  height: 100%;
}

.ui-slider-horizontal .ui-slider-range-min {
  left: 0;
}

.ui-slider-horizontal .ui-slider-range-max {
  right: 0;
}

.ui-slider-vertical {
  width: .8em;
  height: 100px;
}

.ui-slider-vertical .ui-slider-handle {
  left: -.3em;
  margin-left: 0;
  margin-bottom: -.6em;
}

.ui-slider-vertical .ui-slider-range {
  left: 0;
  width: 100%;
}

.ui-slider-vertical .ui-slider-range-min {
  bottom: 0;
}

.ui-slider-vertical .ui-slider-range-max {
  top: 0;
}

.thm-tk-search-page-header {    
  	margin-bottom: 0 !important;
    padding-bottom: 320px !important;
}
.blog-gallery-slider img.img-responsive {
    width: 100%;
}
.select-congiunti {
	display: inline;
	margin: 5px;
	width: 100px;
	text-align: center;
	background-color: white;
	height: 10px;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-clear-button {
    -webkit-appearance: none;
    appearance: none;
}

.bootstrap-touchspin-up{
    padding: 12px 5px;
}

.bootstrap-touchspin-down{
    padding: 12px 8px;
}

.link_down_ticket{
    text-decoration: underline;
    font-size: 16px;
    font-weight: 700;
}

.downloadTicketRow{
    margin-top: 30px;
    font-size: 22px;
    background-color: #ededed;
    padding: 10px;
}

.downloadTicketRow img{
    width: 35px;
}

.modify_page p{
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
}

.modify_page ul{
    margin-bottom: 25px;
}

.modify_page li{
    margin-bottom: 15px;
}

.modify_page li{
    text-decoration: underline;
    font-style: italic;
}

.modify_page li:hover{
    font-size: 16px;
    text-shadow: 1px 1px 1px #59cd59; 
}

.message-no-found {
    font-size: 16px;
    font-weight: 700;
    color: red;
    margin-top: 40px;
}

.btn-back{
    margin-top: 30px;
}

.dati-cliente{
    margin: 25px 0 15px 0;
}

.dati-cliente .col-xs-12, .dati-cliente .col-sm-3{
    font-size: 16px;
    font-weight: 800;
}












































/*
* ===================================================================
* ACCESSIBILITY & WCAG FONT OVERRIDES
* ===================================================================
* Description: This stylesheet overrides fixed 'px' font sizes with
* scalable 'rem' units to comply with WCAG 2.1 AA standards for
* text resizing. Line heights are also adjusted to be unitless for
* better scalability.
*
* Load this file AFTER the main theme stylesheet.
* Base: 1rem = 16px (browser default)
* ===================================================================
*/

/* Establish a base font size for consistent rem unit calculations */
html {
  font-size: 100%; /* Typically defaults to 16px */
}

/* --- Body & General Text --- */
body {
  font-size: 0.9375rem; /* 15px */
  line-height: 1.6;
}

/* --- Headings --- */
h1 {
  font-size: 2.875rem; /* 46px */
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem; /* 36px */
  line-height: 1.2;
}

h3 {
  font-size: 1.625rem; /* 26px */
  line-height: 1.3;
}

h4 {
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
}

h5 {
  font-size: 0.875rem; /* 14px */
  line-height: 1.5;
}

/* --- Navigation & Menus --- */
.common-menu-wrap .nav > li > a,
.common-menu-wrap .nav > li.online-booking-button a {
  font-size: 0.875rem; /* 14px */
}

.common-menu-wrap .nav > li > ul li a,
.common-menu-wrap .nav > li > ul li > div {
  font-size: 0.8125rem; /* 13px */
}

.common-menu-wrap .nav > li > a:before,
.common-menu-wrap .nav > li > a:after {
  font-size: 1.25rem; /* 20px */
}

/* --- Buttons & Inputs --- */
input,
textarea,
select,
input[type="text"],
input[type="email"],
/* Add other input types as needed */
.select2-container--default .select2-selection--single {
  font-size: 0.875rem; /* 14px */
}

.btn {
  font-size: 1.125rem; /* 18px */
}

.btnGestisci {
  font-size: 0.9375rem; /* 15px */
}

.entry-summary .wrap-btn-style .btn,
.thm-feature-carosuel .btn {
  font-size: 0.875rem; /* 14px */
}

/* --- Specific Sections & Components --- */
.sub-title-inner h2.leading {
  font-size: 3.25rem; /* 52px */
  line-height: 1.1;
}

.sub-title-inner h2.page-leading {
  font-size: 3.75rem; /* 60px */
  line-height: 1.1;
}

#top-bar .contacts div {
  font-size: 0.8125rem; /* 13px */
}

#top-bar .contacts div span {
  font-size: 1rem; /* 16px */
}

/* --- Widgets --- */
#sidebar h3.widget_title {
  font-size: 1.125rem; /* 18px */
}

.widget ul li a,
.widget-blog-posts .entry-date {
  font-size: 0.875rem; /* 14px */
}

.widget-blog-posts .entry-title {
  font-size: 1rem; /* 16px */
}

.widget .tagcloud a {
  font-size: 0.75rem !important; /* 12px */
}

/* --- Blog & Posts --- */
.blog-entry-title {
  font-size: 1.25rem; /* 20px */
}

.entry-blog-meta .blog-entry-title {
  font-size: 1.75rem; /* 28px */
  line-height: 1.25;
}

article.post .entry-blog .blog-date time > span {
  font-size: 3.75rem; /* 60px */
  line-height: 1;
}

article.post .entry-blog .blog-date time > span > span {
  font-size: 1rem; /* 16px */
}

.entry-date-day {
  font-size: 2.625rem; /* 42px */
  line-height: 1;
}

.entry-date-month-year {
  font-size: 0.875rem; /* 14px */
}

/* --- Comments --- */
.comment-reply-title {
  font-size: 1.25rem; /* 20px */
}

.comment-context .comment-author {
  font-size: 1.125rem; /* 18px */
}

.comments-title {
  font-size: 1.5rem; /* 24px */
}

/* --- Shortcodes & Modules --- */
.slider-content h2 {
  font-size: 2.6875rem; /* 43px */
  line-height: 1.2;
}

.slider-content h3 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.2;
}

.slider-intro-text {
  font-size: 1.0625rem; /* 17px */
}

.package-list-title {
  font-size: 1.5rem; /* 24px */
}

.package-list-button {
  font-size: 0.75rem; /* 12px */
}

.package-sidebar .titleSummary,
.title {
  font-size: 1.125rem; /* 18px */
}

.package-sidebar .totalPrice {
  font-size: 1.375rem; /* 22px */
}

.action-titlecustomstyle {
  font-size: 1.5rem; /* 24px */
}

/* --- Flight Search Specifics --- */
.thm-flight .thm-flight-segment .col-md-3 .seatok,
.thm-flight .thm-flight-segment .col-md-3 .seatni {
  font-size: 0.6875rem; /* 11px */
}

.thm-flight .thm-flight-price .thm-flight-price-cheap {
  font-size: 1.875rem; /* 30px */
}

.thm-flight .thm-flight-segment-map .thm-fs-map-step span.thm-fs-map-step-departure,
.thm-flight .thm-flight-segment-map .thm-fs-map-step span.thm-fs-map-step-arrival {
  font-size: 1.0625rem; /* 17px */
}

.thm-flight .thm-flight-all-prices .thm-flight-all-price a span {
  font-size: 1.375rem; /* 22px */
}



/*
* ===================================================================
* ACCESSIBILITY & WCAG FONT OVERRIDES (PART 2 - THEME & PLUGINS)
* ===================================================================
* Description: This stylesheet targets additional fixed font sizes
* found in the main theme stylesheet and associated plugins like
* jQuery UI.
*
* Add these rules to your existing 'wcag.css' file.
* Base: 1rem = 16px (browser default)
* ===================================================================
*/

/* --- General Components & Visual Composer --- */
.site-content .vc_cta3-content-header h2,
.site-content .vc_icon_element-inner {
  font-size: 1.25rem; /* Was 20px */
  line-height: 1.4;
}

.travelkit-navbar-brand h1 {
  font-size: 1.5625rem; /* Was 25px */
  line-height: 1.2;
}

.atmosphere-content ul li {
  font-size: 1rem; /* Was 16px */
}

/* --- jQuery UI Widgets (Datepicker, Slider, etc.) --- */
/* Establishes a relative base font size for all UI widgets */
.ui-widget {
  font-size: 0.8125rem; /* Was 13px */
}

/* Ensures nested widgets inherit the relative size */
.ui-widget .ui-widget {
  font-size: 1em; /* Inherits from parent, was 13px */
}

/* Overrides for specific UI elements that had fixed sizes */
.ui-state-highlight p,
.ui-state-error p,
.ui-state-default p {
  font-size: 1em; /* Was 13px, now inherits from .ui-widget */
  line-height: 1.4; /* Was 18px */
}

/* --- WordPress Core & Misc --- */
.screen-reader-text:focus {
  font-size: 0.875rem; /* Already in rem, but defined for consistency */
  line-height: 1.5;
}

.gallery-caption,
.bypostauthor {
  font-size: 0.75rem; /* Was 12px */
}


/* --- Custom Page Specific Styles --- */
.link_down_ticket {
  font-size: 1rem; /* Was 16px */
}

.downloadTicketRow {
  font-size: 1.375rem; /* Was 22px */
}

.modify_page p {
  font-size: 1.125rem; /* Was 18px */
}

.modify_page li:hover {
  font-size: 1rem; /* Was 16px */
}

.message-no-found {
  font-size: 1rem; /* Was 16px */
}

.dati-cliente .col-xs-12,
.dati-cliente .col-sm-3 {
  font-size: 1rem; /* Was 16px */
}











/*
* ===================================================================
* COMPREHENSIVE DARK MODE THEME (v12 - Booking Page)
* ===================================================================
* This version adds styles for the booking confirmation page, theming
* the ticket selection table and the booking summary sidebar.
* ===================================================================
*/

/* --- 1. DEFINE COLOR VARIABLES --- */
:root {
  /* Light Mode Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f4;
  --bg-card: #ffffff;
  --bg-search-area: #ededed;
  --bg-dark-section: #333333;
  --text-primary: #3c3c3c;
  --text-secondary: #555555;
  --text-headings: #111111;
  --text-inverted: #ffffff;
  --brand-accent: #FF6633;
  --brand-accent-hover: #D02B27;
  --brand-accent-alt: #ED131D;
  --brand-success: #0f6532;
  --brand-success-text: #417505;
  --brand-icon-bg: rgba(65, 117, 5, 0.21);
  --border-primary: #cccccc;
  --border-secondary: #e3e3e3;
  --special-footer-bg: #417505;
}

/* --- 2. AUTOMATIC DARK MODE ACTIVATION --- */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode Palette */
    --bg-primary: #1e1e1e;
    --bg-secondary: #2c2c2c;
    --bg-card: #252525;
    --bg-search-area: #252525;
    --bg-dark-section: #121212;
    --text-primary: #d1d1d1;
    --text-secondary: #aaaaaa;
    --text-headings: #f5f5f5;
    --text-inverted: #ffffff;
    --brand-accent: #ff7e54;
    --brand-accent-hover: #e04f1f;
    --brand-accent-alt: #ff5252;
    --brand-success: #5cb85c;
    --brand-success-text: #8fdd32;
    --brand-icon-bg: rgba(92, 184, 92, 0.15);
    --border-primary: #444444;
    --border-secondary: #3a3a3a;
    --special-footer-bg: #3a6804;
  }

  /* Invert images that are dark on a transparent background */
  .enter-logo,
  .prev_week_btn img, 
  .next_week_btn img,
  #buynowbtn h3.title img,
  .titleCheck img,
  a.promo img {
     filter: invert(1);
  }
}

/* --- 3. APPLY VARIABLES TO ALL THEME ELEMENTS --- */

/* Add smooth transitions */
body, .btn, h1, h2, h3, a, input, textarea, select, .site-header, .thm-flight, section#main, table td, table th {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* == Global & Structural Overrides == */
body { background-color: var(--bg-primary); color: var(--text-secondary); }
section#main { background: var(--bg-primary) !important; }
h1, h2, h3, h4, h5, .title, .titleCheck { color: var(--text-headings); }

/* == Header and Logo == */
header.site-header { background-color: var(--bg-primary) !important; }

/* == Search Forms & Results == */
.package-search-wrapper.vc_custom_1478499166695 { background-color: var(--bg-search-area) !important; }
.intestazione_viaggio h2 span { color: var(--brand-accent-alt) !important; }
.thm-flight { background-color: var(--bg-card) !important; border: 1px solid var(--border-primary) !important; }
#all-flights .thm-flight-price-cheap, #all-flights .thm-fs-map-step-departure { color: var(--text-headings); }
#all-flights .thm-flight-agent-cheap, #all-flights .fermata, #all-flights .seatok { color: var(--text-secondary); }

/* == NEW: Booking Confirmation Page == */
.result-popup { /* The main container for the ticket table */
    background-color: var(--bg-card);
    border-color: var(--border-primary);
}
#content h3, #content label, #content p {
    color: var(--text-primary);
}
#content h3 a {
    color: var(--brand-accent);
}
table.data th {
    background-color: var(--bg-secondary);
    color: var(--text-headings);
    border-color: var(--border-primary);
}
table.data td {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-primary);
}
.bootstrap-touchspin .form-control {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}
.bootstrap-touchspin .btn-primary {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
}
.package-sidebar .titleSummary {
    background-color: var(--bg-dark-section);
    color: var(--text-inverted);
}
.package-sidebar .summary {
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}
.package-sidebar .summary li strong {
    color: var(--text-headings);
}
.package-sidebar .totalPrice {
    background-color: var(--brand-accent-hover);
    color: var(--text-inverted);
}

/* == Footer == */
.vc_custom_1476784912937, .footer-wrap { background-color: var(--special-footer-bg) !important; }
.footer-wrap, .footer-wrap p, .footer-wrap h3 { color: var(--text-inverted) !important; }

/* == jQuery UI == */
.ui-widget-content { border-color: var(--border-primary); background: var(--bg-primary); color: var(--text-primary); }
.ui-widget-header { border-color: var(--border-primary); background: var(--bg-secondary); color: var(--text-headings); }
.ui-state-default { border-color: var(--border-primary); background: var(--bg-primary); color: var(--text-primary); }
.ui-state-hover, .ui-state-focus { border-color: var(--brand-accent); background: var(--bg-secondary); color: var(--text-headings); }
.ui-state-active { border-color: var(--brand-accent); background: var(--brand-accent); color: var(--text-inverted); }

/*
* ===================================================================
* COMPREHENSIVE DARK MODE THEME (v13 - Final Booking Page Fixes)
* ===================================================================
* This version adds highly specific overrides for the .thm-titlestandardstyle
* heading, the booking summary sidebar, and the logo to ensure they
* display correctly in dark mode.
* ===================================================================
*/

/* --- 1. DEFINE COLOR VARIABLES --- */
:root {
  /* Light Mode Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f4;
  --bg-card: #ffffff;
  --bg-search-area: #ededed;
  --bg-dark-section: #333333;
  --text-primary: #3c3c3c;
  --text-secondary: #555555;
  --text-headings: #111111;
  --text-inverted: #ffffff;
  --brand-accent: #FF6633;
  --brand-accent-hover: #D02B27;
  --brand-accent-alt: #ED131D;
  --brand-success: #0f6532;
  --brand-success-text: #417505;
  --brand-icon-bg: rgba(65, 117, 5, 0.21);
  --border-primary: #cccccc;
  --border-secondary: #e3e3e3;
  --special-footer-bg: #417505;
}

/* --- 2. AUTOMATIC DARK MODE ACTIVATION --- */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode Palette */
    --bg-primary: #1e1e1e;
    --bg-secondary: #2c2c2c;
    --bg-card: #252525;
    --bg-search-area: #252525;
    --bg-dark-section: #121212;
    --text-primary: #d1d1d1;
    --text-secondary: #aaaaaa;
    --text-headings: #f5f5f5;
    --text-inverted: #ffffff;
    --brand-accent: #ff7e54;
    --brand-accent-hover: #e04f1f;
    --brand-accent-alt: #ff5252;
    --brand-success: #5cb85c;
    --brand-success-text: #8fdd32;
    --brand-icon-bg: rgba(92, 184, 92, 0.15);
    --border-primary: #444444;
    --border-secondary: #3a3a3a;
    --special-footer-bg: #3a6804;
  }

  /* FIX: Invert the logo color in dark mode using a very specific selector */
  .logo-wrapper a > img.enter-logo {
     filter: brightness(0) invert(1) !important;
  }

  /* Invert other dark images that need to be visible */
  .prev_week_btn img,
  .next_week_btn img {
     filter: invert(1);
  }
}

/* --- 3. APPLY VARIABLES TO ALL THEME ELEMENTS --- */

/* Add smooth transitions */
body, .btn, h1, h2, h3, a, input, textarea, select, .site-header, .thm-flight, section#main, table td, table th {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* == Global & Structural Overrides == */
body { background-color: var(--bg-primary); color: var(--text-secondary); }
section#main { background: var(--bg-primary) !important; }
h1, h2, h3, h4, h5, .title, .titleCheck { color: var(--text-headings); }

/* == Header and Logo == */
header.site-header { background-color: var(--bg-primary) !important; }

/* == Search Forms & Results == */
.package-search-wrapper.vc_custom_1478499166695 { background-color: var(--bg-search-area) !important; }
.intestazione_viaggio h2 span { color: var(--brand-accent-alt) !important; }
.thm-flight { background-color: var(--bg-card) !important; border: 1px solid var(--border-primary) !important; }

/* == Booking Confirmation Page == */
/* FIX: Override the black color on the main heading */
.thm-titlestandardstyle {
    color: var(--text-headings);
}
.result-popup { background-color: var(--bg-card); border-color: var(--border-primary); }
#content h3, #content label, #content p { color: var(--text-primary); }
#content h3 a { color: var(--brand-accent); }
table.data th { background-color: var(--bg-secondary); color: var(--text-headings); border-color: var(--border-primary); }
table.data td { background-color: var(--bg-card); color: var(--text-primary); border-color: var(--border-primary); }
.bootstrap-touchspin .form-control { background-color: var(--bg-secondary) !important; color: var(--text-primary) !important; border-color: var(--border-primary) !important; }
.bootstrap-touchspin .btn-primary { background-color: var(--brand-accent-hover); border-color: var(--brand-accent-hover); }

/* FIX: Override the white background on the summary sidebar */
.package-sidebar ul.summary {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}
.package-sidebar .titleSummary { background-color: var(--bg-dark-section); color: var(--text-inverted); }
.package-sidebar .summary li strong { color: var(--text-headings); }
.package-sidebar .totalPrice { background-color: var(--brand-accent-hover); color: var(--text-inverted); }

/* == Footer == */
.vc_custom_1476784912937, .footer-wrap { background-color: var(--special-footer-bg) !important; }
.footer-wrap, .footer-wrap p, .footer-wrap h3 { color: var(--text-inverted) !important; }

/*
* ===================================================================
* NEW RULES: Booking Page - Passenger Info Form
* ===================================================================
*/

/* == Booking Confirmation - Passenger Info Form == */

/* Invert the dark icons on this form */
@media (prefers-color-scheme: dark) {
  #part1 h3.title img,
  .passeggero a[href*="rimuoviBiglietto"] img {
    filter: invert(1);
  }
}

/* Set the background for the passenger info container */
.thm-flight.thm-flight-segment {
    background-color: var(--bg-card);
    border-color: var(--border-primary);
    padding: 20px;
}

/* Style the headings and labels for readability */
#part1 h3.title,
.passeggero h5,
.passeggero .form-group label,
label.conradio {
    color: var(--text-headings);
}

/* Style the input fields for dark mode */
.passeggero .form-group input.form-control {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}
.passeggero .form-group input.form-control:focus {
    border-color: var(--brand-accent) !important;
}

/* Style the "Rimuovi" (Remove) link */
.passeggero a[href*="rimuoviBiglietto"] {
    color: var(--brand-accent-alt);
    text-decoration: underline;
}

/* Ensure the "Continua" button uses the correct variables */
.checkButtons .btn-success {
    background-color: var(--brand-success) !important;
    color: var(--text-inverted) !important;
}

/*
* ===================================================================
* NEW RULES: Booking Page - Contact & Payment Form
* ===================================================================
*/

/* == Booking Confirmation - Contact & Payment Form == */

/* Invert the info icon image */
@media (prefers-color-scheme: dark) {
  .titleCheck img[src*="sconto.png"],
  .titleCheck img[src*="user.png"],
  .titleCheck i.fa-credit-card {
    filter: invert(1);
  }
}

/* Style the form labels and paragraphs for readability */
#part2 h3.titleCheck,
#part2 label,
#part2 p,
#part2 .wpcf7-form-control-wrap.valore_coupon {
    color: var(--text-primary);
}

/* Style the input fields and select dropdowns for dark mode */
#part2 .form-group input.form-control,
#part2 .select2-container--default .select2-selection--single {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}

#part2 .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary) !important;
}

/* Style the "Leggi termini e condizioni" link */
#part2 a[href*="informativa_privacy.pdf"] i u {
    color: var(--brand-accent);
}

/* Style the payment method selection boxes */
.paymentMethod {
    background-color: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 5px;
}
.paymentMethod.active .method {
    border-color: var(--brand-success) !important;
}
.paymentMethod .method {
    border-color: transparent !important; /* Ensure non-active are not bordered */
}

/* Invert payment logos since they are on a dark card now */
@media (prefers-color-scheme: dark) {
    .paymentMethod .method {
        filter: invert(1) brightness(1.5) contrast(1.5);
    }
}

/* Style the "Accetto i termini" checkbox and label */
label.concheck {
    color: var(--text-primary);
}
.checkmark1 {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}
.concheck input:checked ~ .checkmark1 {
    background-color: var(--brand-success);
}

/* Style the final "Indietro" and "Prenota" buttons */
.checkButtons .btn-grey {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: none;
}
.checkButtons .btn-success {
    background-color: var(--brand-success) !important;
    color: var(--text-inverted) !important;
    border: none;
}

/*
* ===================================================================
* FIX: Homepage Feature Boxes
* ===================================================================
* This targets the specific container that is forcing a white background.
*/

/* Make the outer container transparent */
.wpb_wrapper > .vc_cta3-container.boxPrenota {
    background: transparent !important;
}

/* Style the inner box that actually contains the content */
.vc_cta3-container.boxPrenota .vc_general.vc_cta3 {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-primary) !important;
}

/*
* ===================================================================
* FIX: Homepage Search Form Label Contrast
* ===================================================================
* This uses a highly specific selector to override the theme's
* default label color in dark mode.
*/
.package-search-wrapper .thm-tk-search .thm-tk-tab-inner label {
    color: var(--text-primary) !important;
}

/*
* ===================================================================
* FIX: Search Results Page Readability
* ===================================================================
* This fixes the contrast for the main heading and the date selector bar.
*/

/* Styles the "Viaggio di Andata" and "da Bari..." headings */
.intestazione_viaggio h2,
.red_title {
    color: var(--text-headings) !important;
}

/* Styles the day names and dates in the selector bar */
.giorni_calendario .item_soluzione .giorno,
.giorni_calendario .item_soluzione .data {
    color: var(--text-primary) !important;
}

/* Highlights the currently selected day */
.giorni_calendario li.selected .item_soluzione .giorno {
    color: var(--brand-success-text) !important;
}

















/*
* ===================================================================
* COMPREHENSIVE DARK MODE THEME (v16 - :has() Clickable Toggle & Logo Fix)
* ===================================================================
* This version uses the :has() selector to work with your
* current HTML structure and fixes the logo visibility in light mode.
* ===================================================================
*/

/* --- 1. DEFINE COLOR VARIABLES (Light Mode Default) --- */
:root {
  /* Light Mode Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f4;
  --bg-card: #ffffff;
  --bg-search-area: #ededed;
  --bg-dark-section: #333333;
  --text-primary: #3c3c3c;
  --text-secondary: #555555;
  --text-headings: #111111;
  --text-inverted: #ffffff;
  --brand-accent: #FF6633;
  --brand-accent-hover: #D02B27;
  --brand-accent-alt: #ED131D;
  --brand-success: #0f6532;
  --brand-success-text: #417505;
  --brand-icon-bg: rgba(65, 117, 5, 0.21);
  --border-primary: #cccccc;
  --border-secondary: #e3e3e3;
  --special-footer-bg: #417505;
}

/* --- 2. THE CLICKABLE TOGGLE SWITCH --- */

/* Hide the actual checkbox */
#dark-mode-toggle {
  display: none;
}

/* Style the visible label to look like a toggle */
.dark-mode-switch {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 30px;
  background-color: var(--bg-dark-section);
  border: 2px solid var(--bg-primary);
  border-radius: 15px;
  cursor: pointer;
  z-index: 9999;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* The "moon" icon */
.dark-mode-switch::before {
  content: '🌙';
  font-size: 1rem;
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* The "sun" icon */
.dark-mode-switch::after {
  content: '☀️';
  font-size: 1rem;
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- 3. MANUAL DARK MODE ACTIVATION (The Magic) --- */
/* When the checkbox is checked, change the variables on the body */

body:has(#dark-mode-toggle:checked) {
  /* Re-define all variables for Dark Mode */
  --bg-primary: #1e1e1e;
  --bg-secondary: #2c2c2c;
  --bg-card: #252525;
  --bg-search-area: #252525;
  --bg-dark-section: #121212;
  --text-primary: #d1d1d1;
  --text-secondary: #aaaaaa;
  --text-headings: #f5f5f5;
  --text-inverted: #ffffff;
  --brand-accent: #ff7e54;
  --brand-accent-hover: #e04f1f;
  --brand-accent-alt: #ff5252;
  --brand-success: #5cb85c;
  --brand-success-text: #8fdd32;
  --brand-icon-bg: rgba(92, 184, 92, 0.15);
  --border-primary: #444444;
  --border-secondary: #3a3a3a;
  --special-footer-bg: #3a6804;
}

/* Animate the switch icons (this rule is correct) */
#dark-mode-toggle:checked + .dark-mode-switch::before {
  opacity: 0;
  transform: translateY(-50%) translateX(-10px);
}
#dark-mode-toggle:checked + .dark-mode-switch::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Fix for switch border in dark mode */
body:has(#dark-mode-toggle:checked) .dark-mode-switch {
  border-color: var(--bg-primary);
}

/* INVERT LOGO IN LIGHT MODE (Dark Mode UNCHECKED) */
body:not(:has(#dark-mode-toggle:checked)) .travelkit-navbar-brand img {
    filter: invert(0) !important; /* Inverts colors for dark logos on light backgrounds */
}

/* INVERT OTHER IMAGES/ICONS IN DARK MODE (Dark Mode CHECKED) */
body:has(#dark-mode-toggle:checked) .prev_week_btn img,
body:has(#dark-mode-toggle:checked) .next_week_btn img,
body:has(#dark-mode-toggle:checked) #buynowbtn h3.title img,
body:has(#dark-mode-toggle:checked) .titleCheck img,
body:has(#dark-mode-toggle:checked) a.promo img,
body:has(#dark-mode-toggle:checked) .titleCheck i.fa-credit-card {
   filter: invert(1);
}

/* --- 4. APPLY VARIABLES TO ALL THEME ELEMENTS --- */
/* (This part ensures all elements use the variables) */

body, .btn, h1, h2, h3, a, input, textarea, select, .site-header, .thm-flight, section#main, table td, table th {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
body { background-color: var(--bg-primary); color: var(--text-secondary); }
section#main { background: var(--bg-primary) !important; }
h1, h2, h3, h4, h5, .title, .titleCheck { color: var(--text-headings); }
header.site-header { background-color: var(--bg-primary) !important; }

/* Search Forms & Results */
.package-search-wrapper.vc_custom_1478499166695 { background-color: var(--bg-search-area) !important; }
.package-search-wrapper .thm-tk-search .thm-tk-tab-inner label { color: var(--text-primary) !important; }
.intestazione_viaggio h2, .red_title { color: var(--text-headings); }
.intestazione_viaggio h2 span { color: var(--brand-accent-alt) !important; }
.thm-flight { background-color: var(--bg-card) !important; border: 1px solid var(--border-primary) !important; }
#all-flights .thm-flight-price-cheap, #all-flights .thm-fs-map-step-departure { color: var(--text-headings); }
#all-flights .thm-flight-agent-cheap, #all-flights .fermata, #all-flights .seatok { color: var(--text-secondary); }
.thm-flight-details { background-color: var(--bg-secondary); }

/* Homepage Feature Boxes */
.wpb_wrapper > .vc_cta3-container.boxPrenota { background: transparent !important; }
.vc_cta3-container.boxPrenota .vc_general.vc_cta3 { background-color: var(--bg-card) !important; border: 1px solid var(--border-primary) !important; }
.home-icon { background-color: var(--brand-icon-bg) !important; border-color: var(--brand-icon-bg) !important; color: var(--brand-success) !important; }
.boxPrenota h2[style*="#417505"] { color: var(--brand-success-text) !important; }

/* Booking Page */
.result-popup { background-color: var(--bg-card); border-color: var(--border-primary); }
#content h3, #content label, #content p { color: var(--text-primary); }
#content h3 a { color: var(--brand-accent); }
table.data th { background-color: var(--bg-secondary); color: var(--text-headings); border-color: var(--border-primary); }
table.data td { background-color: var(--bg-card); color: var(--text-primary); border-color: var(--border-primary); }
.thm-flight.thm-flight-segment { background-color: var(--bg-card); border-color: var(--border-primary); padding: 20px; }
.passeggero h5, .passeggero .form-group label, label.conradio { color: var(--text-headings); }
.passeggero .form-group input.form-control, #part2 .form-group input.form-control, #part2 .select2-container--default .select2-selection--single {
  background-color: var(--bg-secondary) !important; color: var(--text-primary) !important; border-color: var(--border-primary) !important;
}
#part2 .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text-primary) !important; }
.paymentMethod { background-color: var(--bg-card); border: 2px solid var(--border-primary); }
.paymentMethod.active .method { border-color: var(--brand-success) !important; }
.package-sidebar ul.summary { background: var(--bg-card); border: 1px solid var(--border-primary); color: var(--text-primary); }
.package-sidebar .titleSummary { background-color: var(--bg-dark-section); color: var(--text-inverted); }
.package-sidebar .summary li strong { color: var(--text-headings); }
.package-sidebar .totalPrice { background-color: var(--brand-accent-hover); color: var(--text-inverted); }
#part2 a[href*="informativa_privacy.pdf"] i u { color: var(--brand-accent); }
label.concheck { color: var(--text-primary); }



/*
* ===================================================================
* STYLES: Font Size Toggler
* ===================================================================
*/
.font-sizer {
  position: fixed;
  top: 15px;
  right: 110px; /* Positioned next to the dark mode switch */
  z-index: 9998;
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.font-sizer button {
  background-color: var(--bg-card, #fff);
  color: var(--text-primary, #333);
  border: 1px solid var(--border-primary, #ccc);
  border-left-width: 0;
  padding: 5px 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-sizer button:first-child {
  border-left-width: 1px;
}

.font-sizer button:hover {
  background-color: var(--bg-secondary, #f4f4f4);
  color: var(--brand-accent, #FF6633);
}

/* Adjust button colors in dark mode */
body:has(#dark-mode-toggle:checked) .font-sizer button {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-primary);
}

body:has(#dark-mode-toggle:checked) .font-sizer button:hover {
  background-color: var(--bg-secondary);
  color: var(--brand-accent);
}














/*
* ===================================================================
* FEATURE: ACCESSIBILITY DOCK (v12 - Flexbox Layout Fix)
* ===================================================================
* - Fixes the "floating to top" issue by enforcing bottom coordinates.
* - Fixes text/knob overlap by using a clean Flexbox layout.
* - Ensures icons are visible using SVGs.
* ===================================================================
*/

/* --- 1. Container Positioning & Reset --- */
.font-sizer,
.dark-mode-switch {
    position: fixed !important;
    left: 20px !important;
    z-index: 2147483647 !important;
    width: 160px !important; /* Slightly wider for breathing room */
    height: 44px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border: 2px solid #cccccc !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    
    /* Force Reset of layout properties */
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* --- 2. Font Resizer (Top) --- */
.font-sizer {
    bottom: 75px !important; /* Explicitly positioned above toggle */
    top: auto !important;    /* Override any theme 'top' styles */
}

.font-sizer button {
    flex: 1 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-right: 1px solid #cccccc !important;
    color: #333333 !important;
    font-family: sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Reset text styles */
    text-indent: 0 !important;
    text-shadow: none !important;
}
.font-sizer button:last-child { border-right: none !important; }
.font-sizer button:hover { background-color: #f0f0f0 !important; color: #FF6633 !important; }


/* --- 3. Dark Mode Toggle (Bottom) --- */
.dark-mode-switch {
    bottom: 20px !important;
    top: auto !important;
    cursor: pointer !important;
    position: fixed !important; /* Re-assert fixed positioning */
}

/* The Text Label */
.dark-mode-switch::after {
    content: 'Modo Scuro';
    display: block !important;
    width: auto !important;
    margin-left: 50px !important; /* Push text to the right of the knob */
    font-family: sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #333333 !important;
    line-height: 44px !important;
    white-space: nowrap !important;
    
    /* Force visibility */
    text-indent: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* The Knob Icon (SVG) */
.dark-mode-switch::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 6px !important;
    top: 20px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    z-index: 10 !important;
    transition: transform 0.3s ease !important;
    
    /* Light Mode Knob: Dark Background + White Moon */
    background-color: #333333 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}


/* --- 4. DARK MODE STATE (Checked) --- */

/* Dark Backgrounds for Containers */
body:has(#dark-mode-toggle:checked) .font-sizer,
body:has(#dark-mode-toggle:checked) .dark-mode-switch {
    background-color: #222222 !important;
    border-color: #555555 !important;
    box-shadow: 0 4px 15px rgba(255,255,255,0.15) !important;
}

/* Font Buttons Text Color */
body:has(#dark-mode-toggle:checked) .font-sizer button {
    color: #ffffff !important;
    border-right-color: #555555 !important;
}
body:has(#dark-mode-toggle:checked) .font-sizer button:hover {
    background-color: #333333 !important;
}

/* Move Toggle Knob */
body:has(#dark-mode-toggle:checked) .dark-mode-switch::before {
    transform: translateX(112px) !important; /* Slide to far right */
    
    /* Dark Mode Knob: White Background + Dark Sun */
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cpath d='M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'/%3E%3C/svg%3E") !important;
}

/* Change Toggle Text */
body:has(#dark-mode-toggle:checked) .dark-mode-switch::after {
    content: 'Modo Chiaro';
    color: #ffffff !important;
    margin-left: 15px !important; /* Adjust spacing when knob moves */
}

/* Hide Checkbox */
#dark-mode-toggle { display: none !important; }


.dark-mode-switch::after {

    right: 15px;

}


body:has(#dark-mode-toggle:checked) .dark-mode-switch::before {
    transform: translateX(0px) !important;
  opacity: 1;
    top: 4px !important;
}




.footer-wrap {
   background: #03461E !important; 
}


.vc_custom_1476784912937 {
    /* 1. Fallback: A solid color in case the browser is old or gradient fails */
    background: #03461E !important; 
    
    /* 2. The Gradient: I changed 'background-image' to 'background' for better coverage */
    background: linear-gradient(180deg, #0f6532 0%, #03461E 45%) !important;
}


















/*
* ===================================================================
* FEATURE: ACCESSIBILITY WIDGET (v15 - Single Button Menu)
* ===================================================================
* - Shows only a small icon in the bottom-left corner.
* - Clicking the icon reveals the Font Sizer and Dark Mode toggle.
* ===================================================================
*/

/* --- 1. Widget Container --- */
.accessibility-widget {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 2147483647 !important;
    font-family: sans-serif !important;
}

/* Hide the checkboxes */
.access-checkbox,
#dark-mode-toggle {
    display: none !important;
}

/* --- 2. The Master Icon Button --- */
.access-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #417505 !important; /* Your Brand Green */
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    z-index: 20 !important;
}

.access-btn svg {
    stroke: #ffffff !important;
    width: 28px !important;
    height: 28px !important;
}

.access-btn:hover {
    transform: scale(1.1) !important;
}

/* --- 3. The Pop-up Menu (Hidden by default) --- */
.access-menu {
    position: absolute !important;
    bottom: 60px !important; /* Sits above the button */
    left: 0 !important;
    width: 160px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.9) !important;
    transform-origin: bottom left !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

/* --- 4. OPEN STATE (When Clicked) --- */
.access-checkbox:checked ~ .access-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Rotate the icon when open */
.access-checkbox:checked + .access-btn {
    background-color: #333 !important;
    transform: rotate(45deg) !important;
}


/* --- 5. Styling the Tools (Inside Menu) --- */

/* Font Resizer */
.font-sizer {
    display: flex !important;
    background-color: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    margin-bottom: 0px !important;
    overflow: hidden !important;
    height: 40px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

.font-sizer button {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    border-right: 1px solid #e0e0e0 !important;
    color: #333333 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.font-sizer button:last-child { border-right: none !important; }
.font-sizer button:hover { background-color: #f0f0f0 !important; }


/* Dark Mode Toggle */
.dark-mode-switch {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 40px !important;
    background-color: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    overflow: hidden !important;
}

.dark-mode-switch::after {
    content: 'Modo Scuro';
    position: absolute;
    right: 0;
    top: 0;
    width: 110px;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    pointer-events: none;
}

.dark-mode-switch::before {
    content: '🌙';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 32px;
    height: 32px;
    background-color: #444;
    border-radius: 4px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    transition: transform 0.3s ease !important;
    z-index: 2;
}


/* --- 6. GLOBAL DARK MODE COLORS --- */

/* Widget Colors */
body:has(#dark-mode-toggle:checked) .font-sizer,
body:has(#dark-mode-toggle:checked) .dark-mode-switch {
    background-color: #222222 !important;
    border-color: #555555 !important;
}

/* Font Button Text */
body:has(#dark-mode-toggle:checked) .font-sizer button {
    color: #ffffff !important;
    border-right-color: #555555 !important;
}
body:has(#dark-mode-toggle:checked) .font-sizer button:hover {
    background-color: #333 !important;
}

/* Toggle Switch States */
body:has(#dark-mode-toggle:checked) .dark-mode-switch::before {
    content: '☀️';
    transform: translateX(116px) !important;
    background-color: #ffffff !important;
    color: #000 !important;
}

body:has(#dark-mode-toggle:checked) .dark-mode-switch::after {
    content: 'Modo Chiaro';
    color: #ffffff !important;
    left: 0;
    right: auto;
}

.dark-mode-switch::after {
    content: 'Modo Scuro';
    position: absolute;
    right: 25px;
    top: 18px;
    width: 110px;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    pointer-events: none;
}

.dark-mode-switch::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 3px !important;
    top: 18px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    z-index: 10 !important;
    transition: transform 0.3s 
ease !important;
    background-color: #333333 !important;
    background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'%3E%3C/path%3E%3C/svg%3E) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

body:has(#dark-mode-toggle:checked) .dark-mode-switch::before {

    top: 2px !important;
}







































































/*
* ===================================================================
* FEATURE: ACCESSIBILITY MODAL (v17 - Full UI)
* ===================================================================
* A comprehensive modal interface inspired by industry standards.
* - Dark Blue Header, White Body.
* - Toggle Switches with ON/OFF states.
* - Backdrop blur effect.
* ===================================================================
*/

/* --- 1. Widget Container & Button --- */
.accessibility-widget {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    z-index: 2147483647 !important;
}

/* The "Man" Button */
.access-btn {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 2147483650 !important; /* Topmost */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #1e3a8a !important; /* Dark Blue */
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
}
.access-btn svg {
    stroke: #ffffff !important;
    width: 28px !important;
    height: 28px !important;
}
.access-btn:hover { transform: scale(1.1) !important; }

/* Hide Checkboxes */
.access-checkbox, #dark-mode-toggle { display: none !important; }


/* --- 2. The Modal Panel --- */
.access-panel {
    position: fixed !important;
    bottom: 80px !important;
    left: 20px !important;
    width: 350px !important;
    max-width: 90vw !important;
    max-height: 80vh !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    
    /* Closed State */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.95) !important;
    transform-origin: bottom left !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    z-index: 2147483649 !important;
}

/* Backdrop (Click to close area) */
.access-backdrop {
    position: fixed !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5) !important;
    z-index: 2147483648 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* --- 3. OPEN STATE --- */
.access-checkbox:checked ~ .access-panel {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}
.access-checkbox:checked ~ .access-backdrop {
    opacity: 1;
    visibility: visible;
}


/* --- 4. Panel Header --- */
.access-header {
    background-color: #1e3a8a !important; /* Dark Blue */
    padding: 15px !important;
    text-align: center !important;
}

.header-buttons {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 15px !important;
}

.header-btn {
    background: #ffffff !important;
    color: #1e3a8a !important;
    border: none !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
}
.header-btn:hover { background: #e0e0e0 !important; }

.header-search {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}


/* --- 5. Panel Content (The Options) --- */
.access-content {
    padding: 10px !important;
    overflow-y: auto !important;
    background: #f4f7fa !important;
}

.access-option {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    padding: 15px !important;
    margin-bottom: 10px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

.option-text {
    flex: 1 !important;
    padding: 0 15px !important;
}
.option-text strong {
    display: block !important;
    color: #333 !important;
    font-size: 14px !important;
    margin-bottom: 2px !important;
}
.option-text p {
    margin: 0 !important;
    font-size: 11px !important;
    color: #666 !important;
    line-height: 1.2 !important;
}
.option-icon {
    font-size: 20px !important;
    color: #1e3a8a !important;
}


/* --- 6. Toggle Switches (The "ON/OFF" Buttons) --- */
.switch {
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 24px !important;
}
.switch input { 
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}
.slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    transition: .4s !important;
    border-radius: 34px !important;
}
.slider:before {
    position: absolute !important;
    content: "OFF" !important;
    height: 18px !important;
    width: 24px !important;
    left: 2px !important;
    bottom: 2px !important;
    background-color: #999 !important;
    color: #fff !important;
    font-size: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: .4s !important;
    border-radius: 50% !important;
}

/* Checked State */
input:checked + .slider {
    background-color: #e6f0ff !important;
    border-color: #1e3a8a !important;
}
input:checked + .slider:before {
    transform: translateX(20px) !important;
    background-color: #1e3a8a !important;
    content: "ON" !important;
    width: 24px !important; /* Pill shape when ON */
    border-radius: 12px !important;
}


/* --- 7. Footer --- */
.access-footer {
    text-align: center !important;
    padding: 10px !important;
    font-size: 10px !important;
    color: #999 !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
}


/* --- 8. FUNCTIONAL CLASSES (Added by JS) --- */

/* Seizure Safe Mode: Kill animations */
body.stop-animations * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

































































/*
* ===================================================================
* FEATURE: ACCESSIWAY FULL SUITE (Functional Classes)
* ===================================================================
* These classes are toggled by the Javascript.
* They use !important to override all theme styles.
* ===================================================================
*/

/* 1. Readable Font (Arial/Helvetica) */
body.access-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 500 !important;
}

/* 2. Highlight Links (Yellow on Black) */
body.access-highlight-links a {
    text-decoration: underline !important;
    background-color: #000 !important;
    color: #ff0 !important;
    padding: 0 2px !important;
}

/* 3. Monochrome (Grayscale) */
body.access-monochrome {
    filter: grayscale(100%) !important;
}
/* Keep the widget colored even in monochrome mode so user can see it */
body.access-monochrome .accessibility-widget {
    filter: grayscale(0%) !important;
}

/* 4. Big Cursor */
body.access-big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewport="0 0 48 48" style="fill:black;stroke:white;stroke-width:2px;"><path d="M1 1l16 42 6-16 18-6z" /></svg>'), auto !important;
}

/* 5. Text Spacing */
body.access-spacing * {
    line-height: 1.8 !important;
    letter-spacing: 2px !important;
    word-spacing: 5px !important;
}

/* 6. Stop Animations */
body.access-stop-animations * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* 7. Hide Images */
body.access-hide-images img:not(.access-btn svg), 
body.access-hide-images .rev_slider_wrapper,
body.access-hide-images .vc_row-has-fill {
    opacity: 0 !important;
    visibility: hidden !important;
}
/* Keep widget icons visible */
body.access-hide-images .accessibility-widget img,
body.access-hide-images .accessibility-widget svg {
    opacity: 1 !important;
    visibility: visible !important;
}