/*
Theme Name: FacileOspitare
Theme URI: https://facileospitare.it
Author: Andrea Carapellucci
Description: Tema personalizzato per il SaaS FacileOspitare
Version: 1.0
Text Domain: facileospitare
*/

/* --------------------------
   1. RESET & BASE STYLES
--------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 80px; /* spazio per header fisso */
}

a {
    text-decoration: none;
}

:root{
	--brand:#ffbf2e;
}

/* --------------------------
   2. LAYOUT GENERALE
--------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------
   3. HEADER & NAVIGAZIONE
--------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
	margin: 0 auto;
    padding: 0 2%;
    width: 96%;
}

/* LOGO & TITOLI */
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
}

.site-branding img {
    height: 45px;
    width: auto;
}

.logo-text,
.site-title {
    font-size: 28px;
    color: #195065;
}

.logo-text span,
.site-title span {
    color: #ffbf2e;
}

/* MENU PRINCIPALE */
.main-navigation .menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation .menu li a {
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-navigation .menu li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
    color: #ffbf2e;
}

/* BOTTONI & AZIONI HEADER */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    display: inline-block;
    padding: 8px 18px;
    background-color: #ffbf2e;
    color: #195065;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-login:hover {
    background-color: #ffb000;
}

/* SWITCHER LINGUE */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 12px;
}

.lang-btn {
    background: #fff;
    color: #333;
    font-weight: 600;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.lang-btn:hover { color: #143C73; }
.lang-btn img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.lang-btn .arrow { font-size: 12px; margin-left: 4px; color: #143C73; }

.lang-dropdown { position: relative; }
.lang-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20,60,115,.12);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 140px;
    z-index: 9999;
}
.lang-dropdown.active .lang-list { display: block; }

.lang-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #333;
    font-weight: 600;
}
.lang-list li a:hover {
    background: #f4f6f8;
    color: #143C73;
}
.lang-list img { width: 20px; height: 14px; border-radius: 2px; }

/* --------------------------
   4. LOGIN MODAL
--------------------------- */
.login-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.login-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
    position: relative;
}

.login-modal-content h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

.register-link {
    text-align: center;
    margin-top: 10px;
}

/* --------------------------
   5. BURGER MENU & MOBILE NAV
--------------------------- */
.burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu-btn span {
    display: block;
    position: relative;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}
.burger-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.burger-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: -8px;
}

/* MENU MOBILE OFF-CANVAS */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 270px;
    height: 100vh;
    background: #fff;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1002;
}
.mobile-navigation.open { right: 0; }

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-navigation .mobile-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-navigation .mobile-menu li a {
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}
.mobile-navigation .mobile-menu li a:hover {
    color: #0073e6;
}

.mobile-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* --------------------------
   6. HERO SLIDER
--------------------------- */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
	top: 0;
	width: 100%;
	height: calc(100vh - 80px);
    text-align: center;
    color: #143C73;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 0 20px;
	background-size: cover;
	z-index: 0;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: translateY(0);
	z-index: 1!important;
}

.hero-slider .slide h1, .hero-slider .slide h2 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #fff;
	text-shadow: 1px 1px 4px #0b0b0b;
    line-height: 60px;
}

.hero-slider .slide p, .hero-slider .slide li, #slide-home-1 h2 {
    color: #113644;
    font-weight: 700;
    font-size: 25px;
    line-height: 29px;
    margin-bottom: 5vh;
    text-shadow: 0px 0px 4px #fff;
	background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-slider .slide li {
	margin-bottom: 2vh;
	margin-left: -70px;
}

#slide-home-1 {
	background-image: url('http://facileospitare.it/wp-content/uploads/2025/08/sfondo1.png');
    background-position: center top;
}

#slide-home-2 {
	background-image: url('http://facileospitare.it/wp-content/uploads/2025/08/sfondo2-e1756282340341.png');
    background-position: center top;
}

#slide-home-1::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 55%;
	height: 100%;
	background: linear-gradient(to right, rgb(233 233 233 / 30%), rgb(233 233 233 / 0%));
	z-index: 1;
	pointer-events: none;
}

#slide-home-2::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgb(255 255 255 / 80%), rgb(233 233 233 / 10%));
  z-index: 1;
  pointer-events: none;
}

#slide-home-1::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
    mask-image: linear-gradient(to right, black 50%, transparent 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 1;
	pointer-events: none;
}

#slide-home-2::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 80%;
	height: 100%;
	-webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
	mask-image: linear-gradient(to left, black 50%, transparent 100%);
	backdrop-filter: blur(1px);
	-webkit-backdrop-filter: blur(1px);
	z-index: 1;
	pointer-events: none;
}

#slide-home-1 .slide-text, #slide-home-2 .slide-text  {
	z-index: 2;
}

.slide-text {
	position: absolute;
	top: 12vh;
	width: 50%;
	padding: 0 20px;
	letter-spacing: 0.2px;
}

#slide-home-2 .slide-text {
	top: 6vh;
	left: 50%;
}

.slide-text ul {
	list-style: none;
	padding-left: 0;
	margin-bottom: 5vh;
}

.slide-text ul li {
	position: relative;
	padding-left: 30px;
	text-shadow: 0px 0px 4px #ffffff;
}

.slide-text ul li::before {
  content: '';
  position: relative;
  display: inline-block;
  padding-right: 20px;
  margin-bottom: -16px;
  transform: translateY(-50%);
  width: 20px;
  height: 28px;
  background-image: url("https://facileospitare.it/wp-content/themes/facileospitare/assets/icons/check.png");
  background-size: 66%;
  background-repeat: no-repeat;
}

.hero-slider .btn-login {
	padding: 10px 20px;
	font-size: 18px;
    font-weight: 700;
	box-shadow: 0px 0px 5px #585858;
}

.excerpt {
	font-style: italic;
    color: #676767;
    padding: 5px 10px;
    border-radius: 7px;
    background: #fff8e7;
	position: relative; /* Necessario per posizionare la barra pseudo-elemento */
    padding-left: 15px; /* Aggiunge spazio a sinistra per la barra */
	margin-top: 10px;
    margin-bottom: 20px; /* Mantieni il margine esistente o adattalo */
    border-left: 5px solid var(--brand); /* La barra verticale */
}

.excerpt p {
	line-height: 22px;
    font-size: 17px;
}

.tabella-strutture-regioni {
	width: 100%;
}

.tabella-strutture-regioni thead th {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
    text-align: left;
    max-height: 120px;
    line-height: 15px;
    width: 40px;
}

.tabella-strutture-regioni td {
	text-align: center;
}

/* --------------------------
   7. UTILITY & OVERRIDE
--------------------------- */
body.home .container.page-content,
body.home h1.page-title {
    display: none;
}

/* --------------------------
   8. ANIMAZIONI
--------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------
   9. RESPONSIVE
--------------------------- */
/* SCHERMI XL */
@media (min-width: 1440px) {
	
}
@media (max-width: 1024px){

}
/* MOBILE */
@media (max-width: 768px) {
    /* Nascondo menu desktop */
    .main-navigation,
    .desktop-menu,
    .desktop-actions {
        display: none;
    }

    /* Mostro burger */
    .burger-menu-btn {
        display: flex;
    }

    /* Hero slider */
    .hero-slider .slide h1 { font-size: 2rem; }
    .hero-slider .slide p { font-size: 1rem; }
}
