/* Stili generali */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Stile specifico per la pagina home */
body.home-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Rimuoviamo gli stili specifici della hero section poiché ora è tutto background */
.hero {
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Contenitori trasparenti */
.home-page .container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
}

.home-page .service-card {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.home-page .service-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Cards */
.card {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Responsive Images */
.img-fluid {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sections */
section {
    padding: 50px 0;
}

/* Navbar Active Link */
.nav-link.active {
    font-weight: bold;
    color: #fff !important;
}

/* Footer */
footer {
    margin-top: 50px;
}

/* Stile navbar e menu */
.navbar-nav {
    margin-left: 20px;
}

.nav-item {
    margin: 0 10px;
    padding: 5px 0;
}

.nav-link {
    font-size: 1.4rem !important;  /* Dimensione più grande */
    padding: 8px 20px !important;
    background: rgba(200, 200, 200, 0.2);  /* Grigio chiaro semi-trasparente */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(200, 200, 200, 0.4);  /* Grigio più scuro all'hover */
    transform: translateY(-2px);
}

.nav-link.active {
    font-weight: bold;
    background: rgba(200, 200, 200, 0.5);  /* Grigio più scuro per il link attivo */
    color: #fff !important;
}

/* Aggiusta la navbar per i nuovi elementi più grandi */
.navbar {
    background-color: rgba(33, 37, 41, 0.7) !important;
    backdrop-filter: blur(5px);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-radius: 30px;
    margin: 15px 20px;
}

.navbar:hover {
    background-color: rgba(33, 37, 41, 0.9) !important;
}

.navbar-brand, .nav-link {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Stile per la pagina impianti elettrici */
body.impianti-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/impianti elettrici background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Stile per la pagina domotica */
body.domotica-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/domotica background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Stili comuni per i contenitori nelle pagine con background */
.impianti-page .container, .domotica-page .container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.impianti-page h1, .impianti-page h2,
.domotica-page h1, .domotica-page h2 {
    color: white;
}

/* Stile per le card nelle pagine con background */
.impianti-page .card, .domotica-page .card {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

/* Stile per la navbar fissa */
.header_section {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
}

/* Aggiustiamo il padding-top del contenuto per compensare la navbar fissa */
.container {
    margin-top: 100px; /* Aumentiamo il margine superiore */
}

.hero_section {
    padding-top: 120px; /* Aumentiamo il padding superiore della hero section */
}

/* Manteniamo la trasparenza della navbar */
.navbar {
    background-color: rgba(33, 37, 41, 0.7) !important;
    backdrop-filter: blur(5px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar:hover {
    background-color: rgba(33, 37, 41, 0.9) !important;
} 


@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);

html {
  font-family: 'Montserrat', Arial, sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #F2F3EB;
}

button {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button, input, select, textarea {
  color: #5A5A5A;
  font: inherit;
  margin: 0;
}

input {
  line-height: normal;
}

textarea {
  overflow: auto;
}

#container {
  border: solid 3px #474544;
  max-width: 768px;
  margin: 60px auto;
  position: relative;
}

form {
  padding: 37.5px;
  margin: 50px 0;
}

h1 {
  color: #474544;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 7px;
  text-align: center;
  text-transform: uppercase;
}

.underline {
  border-bottom: solid 2px #474544;
  margin: -0.512em auto;
  width: 80px;
}

.icon_wrapper {
  margin: 50px auto 0;
  width: 100%;
}

.icon {
  display: block;
  fill: #474544;
  height: 50px;
  margin: 0 auto;
  width: 50px;
}

.email {
	float: right;
	width: 45%;
}

input[type='text'], [type='email'], select, textarea {
	background: none;
  border: none;
	border-bottom: solid 2px #474544;
	color: #474544;
	font-size: 1.000em;
  font-weight: 400;
  letter-spacing: 1px;
	margin: 0em 0 1.875em 0;
	padding: 0 0 0.875em 0;
  text-transform: uppercase;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

input[type='text']:focus, [type='email']:focus, textarea:focus {
	outline: none;
	padding: 0 0 0.875em 0;
}

.message {
	float: none;
}

.name {
	float: left;
	width: 45%;
}

select {
  background: url('https://cdn4.iconfinder.com/data/icons/ionicons/512/icon-ios7-arrow-down-32.png') no-repeat right;
  outline: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

select::-ms-expand {
  display: none;
}

.subject {
  width: 100%;
}

.telephone {
  width: 100%;
}

textarea {
	line-height: 150%;
	height: 150px;
	resize: none;
  width: 100%;
}

::-webkit-input-placeholder {
	color: #474544;
}

:-moz-placeholder { 
	color: #474544;
	opacity: 1;
}

::-moz-placeholder {
	color: #474544;
	opacity: 1;
}

:-ms-input-placeholder {
	color: #474544;
}

#form_button {
  background: none;
  border: solid 2px #474544;
  color: #474544;
  cursor: pointer;
  display: inline-block;
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 0.875em;
  font-weight: bold;
  outline: none;
  padding: 20px 35px;
  text-transform: uppercase;
  -webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

#form_button:hover {
  background: #474544;
  color: #F2F3EB;
}

@media screen and (max-width: 768px) {
  #container {
    margin: 20px auto;
    width: 95%;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 26px;
  }
  
  .underline {
    width: 68px;
  }
  
  #form_button {
    padding: 15px 25px;
  }
}

@media screen and (max-width: 420px) {
  h1 {
    font-size: 18px;
  }
  
  .icon {
    height: 35px;
    width: 35px;
  }
  
  .underline {
    width: 53px;
  }
  
  input[type='text'], [type='email'], select, textarea {
    font-size: 0.875em;
  }
}

/* Stile specifico per la pagina contatti */
.contact-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contatti.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Stili per le icone social nella navbar */
.social-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
}

.social-icon-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    color: white;
}

.social-icon-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-icon-item a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-icon-item a:hover {
    color: #0066cc;
}

/* Stile footer più compatto */
.footer_section {
    background-color: rgba(33, 37, 41, 0.7) !important;
    backdrop-filter: blur(5px);
    padding: 10px 0; /* Ridotto da 20px a 10px */
    position: relative;
    border-radius: 30px;
    margin: 20px;
    bottom: 0;
    width: calc(100% - 40px);
}

/* Stile per il contenitore principale delle pagine */
.contact-page,
.manutenzione-page,
.videosorveglianza-page,
.domotica-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Il contenuto principale deve espandersi per spingere il footer in basso */
.container {
    flex: 1 0 auto;
}

/* Footer sempre in fondo */
footer {
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-info {
    text-align: center;
    color: white;
    width: 100%;
}

.footer-info h3 {
    font-size: 1.2rem; /* Ridotto la dimensione del titolo */
    margin-bottom: 5px; /* Ridotto il margine */
}

.footer-info p {
    font-size: 0.9rem; /* Ridotto la dimensione del testo */
    margin: 5px 0; /* Ridotto i margini */
}

.footer-social {
    display: flex;
    gap: 15px; /* Ridotto lo spazio tra le icone */
    margin-top: 10px; /* Ridotto il margine superiore */
    justify-content: center;
}

.footer-social a {
    color: white;
    font-size: 1.1rem; /* Ridotto leggermente la dimensione delle icone */
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #0066cc;
    transform: translateY(-3px);
}

/* Stili per le immagini cliccabili */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.service-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.service-card a {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Stili per la pagina videosorveglianza */
.videosorveglianza-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/videosorveglianza-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Stili per la pagina manutenzione */
.manutenzione-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/manutenzione-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Riduciamo il margine sotto il contenuto principale */
.container {
    margin-bottom: 10px;
}

/* Stile per le immagini nella pagina impianti elettrici */
.impianti-image {
    border: 3px solid black;
    border-radius: 20px;
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.impianti-image:hover {
    transform: scale(1.02);
}

/* Se le immagini sono dentro card o altri contenitori */
.card img, 
.service-card img,
.gallery-item img {
    border: 3px solid black;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.card img:hover, 
.service-card img:hover,
.gallery-item img:hover {
    transform: scale(1.02);
}

/* Per le immagini nella griglia dei servizi */
.service-image {
    border: 3px solid black;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.service-image:hover {
    transform: scale(1.02);
}



.navbar {
  background-color: #333;
  padding: 1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  margin-right: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 10px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  min-width: 200px;
  list-style: none;
  padding: 0;
}

.dropdown-menu li a {
  color: #333;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

.nav-item:hover .dropdown-menu {
  display: block;
} 