/* Variabili CSS per i colori */
:root {
    --primary-color: #0a2f6c;
    --secondary-color: #ffc107;
    --tertiary-color: #9f9f9f;
    --background-color: #fff;
    --text-color: #333;
	--textBianco-color: #fff;
}

[data-theme="dark"] {
    --background-color: #121212;
    --text-color: #f5f5f5;
}

/* Modalità Scura */
[data-theme="dark"] {
    --background-color: #121212;
    --text-color: #f5f5f5;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    position: sticky;
    top: 0;
    background: var(--background-color);
    border-bottom: 1px solid var(--tertiary-color);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo img {
    height: 40px;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li {
    margin-left: 1.5rem;
}

.menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

#menu-toggle {
    display: none;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}

section#contatti {
    min-height: 380px;
}

#hero {
    background: url('../img/home-img.webp') no-repeat center center/cover;
    color: #fff;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
	max-width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    background: darken(var(--secondary-color), 10%);
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}
[data-theme="dark"] h2 {
    color: #ffc107; /* Colore per gli h2 in modalità dark */
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.devices {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.device {
    flex: 1 1 300px;
    margin: 1rem;
    text-align: center;
}

.device img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.device h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.benefits {
    list-style: none;
    max-width: 800px;
    margin: auto;
    color: var(--text-color);
}

.benefits li {
    /*background: url('../img/checkmark.png') no-repeat left center;*/
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.pricing {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.price-card {
    background: var(--background-color);
    padding: 2rem;
    margin: 1rem;
    text-align: center;
    flex: 1 1 300px;
    border-radius: 8px;
    border: 1px solid var(--tertiary-color);
}

.price-card h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--primary-color);
	font-weight: 800;
}
[data-theme="dark"] h3 {
    color: var(--secondary-color);
}

.price {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-color);
}

.price-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.price-card ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
}

.contact-info {
    list-style: none;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
}

.contact-info li {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
	color: var(--primary-color);
}

.carousel {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.carousel div {
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
}

.carousel .slick-dots {
    text-align: center;
    margin-top: 10px;
}

.carousel .slick-dots li button:before {
    font-size: 12px;
    color: var(--text-color);
}

.carousel .slick-dots li.slick-active button:before {
    color: var(--secondary-color);
}

footer {
    background: var(--tertiary-color);
    color: var(--textBianco-color);
    text-align: center;
    padding: 1rem 0;
}

a {
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
	color: var(--primary-color);
}
[data-theme="dark"] a {
    color: #ffc107; /* Colore per gli h2 in modalità dark */
}
[data-theme="dark"] a:hover {
    color: #ffc107; /* Colore per gli h2 in modalità dark */
}
[data-theme="dark"] .btn {
    color: #fff; /* Colore per gli h2 in modalità dark */
}


/* Interruttore Light/Dark Mode */
.theme-switch-wrapper {
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--background-color);
    }
    .menu li {
        margin: 0;
    }
    .menu li a {
        padding: 1rem;
        display: block;
    }
    .menu-icon {
        display: block;
    }
    #menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }
    .devices {
        flex-direction: column;
        align-items: center;
    }
    .pricing {
        flex-direction: column;
        align-items: center;
    }
	#hero {
    background: url('../img/home-img_mobile.webp') no-repeat center center/cover;
	}
}

/* Sezione Statistiche */
#statistiche {
    padding: 4rem 2rem;
    background-color: var(--primary-color);
    color: #fff;
	max-width: 100%;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.stat {
    flex: 1 1 200px;
    text-align: center;
    margin: 1rem;
}

.stat h4 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat p {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
}
.number span {
    background: #3c99df;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    color: #fff;
    display: block;
    float: left;
    font-weight: 500;
    height: 43px;
    line-height: 42px;
    margin: -4px 27px 30px 0px;
    text-align: center;
    width: 43px;
}