
:root {
    --max-width: 900px;
    
    /* Colori Brand Arredofrigo */
    --brand-red: #f20000;
    --brand-blue: #0073aa;
    
    /* Colori Header e Footer */
    --header-bg-start: #1e3a5f;
    --header-bg-end: #2a4d6e;
    --header-border: #4a6fa5;
    --header-text: white;
    --header-text-light: #e6f3ff;
    
    /* Colori Sezioni */
    --section-gray-start: #f8f9fa;
    --section-gray-end: #ffffff;
    --section-gray-border-start: #e9ecef;
    --section-gray-border-end: #f8f9fa;
    
    --section-blue-start: #e8f4f8;
    --section-blue-end: #f1f8fb;
    --section-blue-border-start: #0073aa;
    --section-blue-border-end: #00a0e4;
    
    --section-red-start: #fdf2f2;
    --section-red-end: #fef5f5;
    --section-red-border-start: #f30000;
    --section-red-border-end: #ff4444;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
}

p {
  padding: 0 0;
}

/* Header container */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--header-bg-start) 0%, var(--header-bg-end) 100%);
  border-bottom: 3px solid var(--header-border);
  color: var(--header-text);
}

/* Top row: logo + contacts */
.header-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}

/* Logo section */
.logo-section {
  text-align: center;
}
.logo-img {
  max-height: 60px;
}
.tagline {
  font-size: 0.9rem;
  color: var(--header-text-light);
  margin-top: 5px;
}

/* Contact section */
.contact-section {
  text-align: left;
  font-size: 0.95rem;
}
.contact-phone {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--header-text);
}
.contact-phone a{
  text-decoration: none;
  color: var(--header-text);
}
.phone-icon {
  margin-right: 5px;
  color: var(--brand-red);
  font-size: 1.1rem;
}
.contact-hours {
  font-weight: 600;
  color: var(--header-text-light);
}

/* Navigation */
.main-nav {
  /* margin-top: 1rem; */
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--header-text);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.main-nav a:hover {
  background: rgb(23 39 59);
  transform: translateY(-2px);
  border-radius: 8px;
  color: var(--brand-red);
}

/* Dropdown menu styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  cursor: pointer;
}
.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: linear-gradient(135deg, var(--header-bg-start) 0%, var(--header-bg-end) 100%);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: opacity 0.2s;
  opacity: 0;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
  opacity: 1;
}
/* Apertura via JS */
.dropdown-menu.open {
  display: block;
  opacity: 1;
}

.dropdown-arrow {
  transition: transform 0.2s;
}
.dropdown-arrow.open svg {
  transform: rotate(180deg);
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--header-text);
  text-decoration: none;
  border-radius: 0;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  background: rgb(23 39 59);
  color: var(--brand-red);
}

/* Content */
main {
  max-width: var(--max-width);
  margin: 0 auto 0 auto;
  padding: 0 1rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-section {
    margin-top: 10px;
  }
  .main-nav {
    gap: 10px;
  }
  .main-nav a {
    margin: 0.5rem;
  }
}

footer {
  background: linear-gradient(135deg, var(--header-bg-start) 0%, var(--header-bg-end) 100%);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--header-text-light);
  border-top: 3px solid var(--header-border);
  /* margin-top: 3rem; */
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.img-base {
  width: 80%;
  max-width: 300px;
  border-radius: 12px;
  /* object-fit: cover; */
  display: block;
  margin: 0 auto;
}

.img-icon{
  width: 180px;
  height: 180px;
  object-fit: cover; 
  border-radius: 50%; 
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  display: block;
  margin: 0 auto;
}




/* Specifico stile per pagina fornitori con griglia */

.grid-marchi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
  /* background: #f9f9f9;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd; */
}

.marchio {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  /* border: 1px solid #eee; */
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
  height: 100px;
}

.marchio:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.marchio img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.2s ease;
}

.marchio img:hover {
  filter: none;
  transform: scale(1.05);
}

/* Fine Specifico stile per pagina fornitori con griglia */


/* Button styles */
.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--brand-blue);
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  margin: 1rem 0;
}

.btn-primary:hover {
  background: var(--header-bg-start);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

/* Stile specifico per le card dei servizi */
.card.servizio {
  background: var(--section-gray-start);
  border-left: 4px solid var(--brand-blue);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
}

.card.servizio:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-left-width: 5px;
}

.card.servizio h3 {
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card.servizio p {
  color: #555;
  line-height: 1.5;
}

/* Home page sections con banner colorati */

/* Classe base per tutte le sezioni con banner */
.banner-section {
  padding: 3rem 0;
  position: relative;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* Sezione Hero - Bianco pulito */
.hero-section {
  background: #ffffff;
}

.hero-section h1 {
  text-align: center;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-section p {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* Sezione Grigia */
.section-gray {
  background: linear-gradient(135deg, var(--section-gray-start) 0%, var(--section-gray-end) 100%);
}

.section-gray::before {
  background: linear-gradient(90deg, var(--section-gray-border-start) 0%, var(--section-gray-border-end) 100%);
  height: 2px;
}

/* Sezione Blu */
.section-blue {
  background: linear-gradient(135deg, var(--section-blue-start) 0%, var(--section-blue-end) 100%);
}

.section-blue::before {
  background: linear-gradient(90deg, var(--section-blue-border-start) 0%, var(--section-blue-border-end) 100%);
  height: 4px;
}

/* Sezione Rossa */
.section-red {
  background: linear-gradient(135deg, var(--section-red-start) 0%, var(--section-red-end) 100%);
}

.section-red::before {
  background: linear-gradient(90deg, var(--section-red-border-start) 0%, var(--section-red-border-end) 100%);
  height: 4px;
}
.section-gray h2,
.section-blue h2,
.section-red h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.section-blue h2{
  color: var(--brand-blue);
}

.section-red h2{
  color: #f30000;
}


/* Responsive per le sezioni */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-gray,
  .section-blue,
  .section-red {
    padding: 2rem 0;
  }
  
  .section-gray,
  .section-blue h2,
  .section-red h2 {
    font-size: 1.5rem;
  }
}

.link-no-decoration{
  color: inherit;
  text-decoration: unset;
}