/* --- Global Styles & Variables --- */
:root {
    --primary-blue: #005c9a;
    --accent-green: #4caf50;
    --dark-grey: #333333;
    --light-grey-bg: #f4f4f4;
    --white: #ffffff;
    --font-family: 'Poppins', 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--dark-grey);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

h1, h2, h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-top: 2rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

/* --- Header & Navigation --- */
.header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    height: 100px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #004a7c;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.btn-secondary:hover {
    background: var(--accent-green);
    color: var(--white);
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('sfondo hero.jpg') no-repeat center center/cover; /* Sostituisci '#' con il percorso della tua foto di sfondo */
    padding: 0 1rem;
}

.hero h1 {
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem 0 2rem 0;
}

.hero .btn-secondary {
    margin-left: 1rem;
}

/* --- Why Us Section (Homepage) --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.why-us-grid .feature-icon {
    font-size: 3rem; /* Per icone da libreria tipo FontAwesome */
    color: var(--accent-green);
    margin-bottom: 1rem;
}

/* --- Services Intro Section (Homepage) --- */
.services-intro {
    background: var(--light-grey-bg);
}

.services-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.service-card .btn {
    margin-top: 1rem;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}
.service-card .btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* --- Page Header --- */
.page-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 {
    color: var(--white);
}
/* --- Services Page Sections --- */
.services-section {
    background: var(--light-grey-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 5px;
}

.focus-box {
    background: #e7f0f7;
    border-left: 5px solid var(--primary-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

/* --- How it Works Section --- */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-green);
}
.step h4 {
    color: var(--primary-blue);
    margin-top: 0.5rem;
}


/* --- About Us Page --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-grid img {
    width: 100%;
    border-radius: 5px;
}
/* --- Authorization Page Styles --- */
.authorization-list .auth-item {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.authorization-list .auth-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.authorization-list .auth-item-info h3 {
    margin-bottom: 0.5rem;
}

.authorization-list .auth-item-info p {
    margin-bottom: 0;
    color: #666;
}

.authorization-list .auth-item .btn {
    white-space: nowrap; /* Evita che il testo del bottone vada a capo */
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-info-item i { /* Icon */
    color: var(--primary-blue);
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* --- Footer --- */
.footer {
    background-color:#002e6d; 
    color:white; 
    padding-top:15px;
}
.footer .container {
    padding-top:2em;
    padding-bottom:2em;
}
.footer a {
    color: var(--accent-green);
    text-decoration: none;
}

.widgettitle{
    border-style: solid;
    border-width: 1px;
    padding: 10px 0;
    border-left: none;
    border-right: none;
    margin-bottom: 15px;
    border-color: #555555;
}

.fa-map-marker-alt:before {
    content: "\f3c5";
}

.fa-info-circle:before {
    content: "\f05a";
}

.fa-clock:before {
    content: "\f017";
}

.fa-shopping-cart:before {
    content: "\f07a";
}

.footer-info{
    margin-top:30px;
    margin-bottom:30px;
}

/* Footer base */
#socket {
  background: #1a1a1a; /* nero */
  color: #fff;
  font-size: 14px;
  padding: 15px 0;
}

#socket .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Testo copyright */
#socket .copyright {
  color: #fff;
}

/* Link Privacy / Cookie */
#socket .copyright a {
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  margin-left: 6px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

#socket .copyright a:hover {
  background: #0073aa; /* blu hover */
  color: #fff;
}

/* Social */
#socket .social_bookmarks {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#socket .social_bookmarks li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* LinkedIn */
#socket .social_bookmarks_linkedin a {
  background: #0077b5;
}

/* Mail */
#socket .social_bookmarks_mail a {
  background: #8a9b0f;
}

/* Hover effetti */
#socket .social_bookmarks li a:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

#top .avia-font-entypo-fontello, body .avia-font-entypo-fontello, html body [data-av_iconfont='entypo-fontello']:before {
    font-family: 'entypo-fontello';
}

@media(max-width:968px){
    .social_bookmarks{
        margin-top:10px !important;
    }
}

/* NAV BASE */
.main-nav {
  padding: 10px 20px;
  position: relative;
}

.main-nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* HAMBURGER ICON */
.nav-toggle {
  background: none;
  border: none;
  color: #005c9a;
  font-size: 24px;
  cursor: pointer;
  display:none;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .main-nav ul {
    flex-direction: column;
    position: absolute;
    top: 300%;
    right:-1rem;
    width: 100%;
    max-height: 0;
    overflow: hidden;
  }

  .main-nav ul.show {
    max-height: 500px; /* abbastanza per mostrare tutti i link */
    background-color: white;
    overflow: visible;
    width: 200px;
    padding-bottom:20px;
  }

  .nav-toggle {
    display:block;
    position: absolute;
    right: 20px;
    top: 15px;
  }
}

.main-nav ul li a.active {
  color: #0077b5;
  border-bottom: 2px solid #0077b5;
}
