@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}
a {
  color: #5c2e91;
  text-decoration: none;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: white;
  border-bottom: 1px solid #ddd;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo {
  max-height: 60px;
}
.brand h1 {
  font-size: 1.4rem;
  color: #3b3b3b;
}
.sottotitolo {
  font-size: 0.95rem;
  color: #777;
  font-style: italic;
}
.menu a {
  margin-left: 20px;
  font-weight: 500;
}
.hero-wrapper {
  padding: 20px;
  background: #f4f4f4;
}

.hero {
  position: relative;
  height: 280px;
  overflow: hidden;

  /* ombra qui, non sulla hero-image */
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.2s ease-in-out;
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.3);
}
.hero-overlay h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #f0f0f0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 0.5rem;
}

.hero-overlay .sottotitolo-hero {
  font-size: 1.3rem;
  font-weight: 300;
  color: #ffdd57; /* giallo caldo per contrasto */
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #6f42c1;
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 8px 12px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
  z-index: 3;
}
.hero-prev:hover,
.hero-next:hover {
  background-color: #5a32a3;
}
.hero-prev { left: 15px; }
.hero-next { right: 15px; }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }

.sottotitolo-hero {
  font-size: 1.2rem;
  color: #e0e0e0;
}
.servizi {
  display: flex;
  gap: 20px;
  padding: 20px 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  width: 300px;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(44,62,80,.15);
}
.card h3 {
  color: #5c2e91;
  margin-bottom: 10px;
}
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background-color: #fff;
  color: #999;
  margin-top: 40px;
}

/* Evita che Bootstrap interferisca con il tuo header */
.topbar * {
  all: unset;
  all: revert;
  box-sizing: border-box;
}

/* Re-applica solo ciò che ti serve */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: white;
  border-bottom: 1px solid #ddd;
  font-family: 'Segoe UI', sans-serif;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  max-height: 60px;
}

.brand h1 {
  font-size: 1.4rem;
  color: #3b3b3b;
  margin: 0;
}

.sottotitolo {
  font-size: 0.95rem;
  color: #777;
  font-style: italic;
  margin: 0;
}

.menu a {
  margin-left: 20px;
  font-weight: 500;
  color: #5c2e91;
  text-decoration: none;
}

    .contact-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }
    .content-box {
      background: #f9f9fc;
      padding: 2rem;
      max-width: 70rem;
      width: 100%;
      border-radius: 12px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }
    .content-box h2 {
      color: #5c2e91;
      margin-bottom: 30px;
      font-weight: bold;
    }
    .content-box p {
      font-size: 1.1rem;
      margin-bottom: 15px;
    }
    .contact-icon {
      margin-right: 10px;
      color: #5c2e91;
    }
    .cta {
      background-color: #fff;
      border-left: 5px solid #5c2e91;
      padding: 15px 20px;
      margin-bottom: 30px;
      font-size: 1.05rem;
    }
    .cta a {
      display: inline-block;
      margin-top: 10px;
      font-weight: bold;
      color: #fff;
      background-color: #5c2e91;
      padding: 10px 18px;
      border-radius: 6px;
      text-decoration: none;
    }
    .cta a:hover {
      background-color: #472c79;
    }
	
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 5px;
}

.thumb {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  margin: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  padding: 4px;
}

.thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.indentato {
	padding-left: 1rem;
}

/* Loader per l'area drop */
#drop-area { position: relative; }
#drop-area .drop-loader {
display:none; position:absolute; inset:0; background:rgba(255,255,255,.6);
align-items:center; justify-content:center; z-index:10; border-radius:.25rem;
}
#drop-area.drop-loading .drop-loader { display:flex; }


/* personalizzazione dei tips sulle input del preventivo */
/* Messaggi di errore in grigio e corsivo */
.hint-feedback {
  color: #6c757d !important; /* grigio Bootstrap */
  font-style: italic;
  padding-left:0.3rem;
}

/* Bordo degli input invalidi in grigio */
.form-control {
  border-color: #ccc !important;
  box-shadow: none !important;
}

/* Evita il bordo rosso nativo */
input:invalid,
textarea:invalid,
checkbox:invalid,
select:invalid {
  border-color: #ccc !important;
  box-shadow: none !important;
}

/* Rimuove eventuale icona di info/error predefinita dei browser */
input:invalid,
textarea:invalid {
  background-image: none !important;
}


button[type="submit"]:disabled {
  background-color: #ccc !important;
  border-color: #bbb !important;
  color: #666 !important;
  cursor: not-allowed;
}

#submit-hint {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.25rem;
}

.invalid-feedback {
	color:#C0C0C0;
}


/* overlay su drag foto */
#drop-area::after {
  content: "\f030\A Rilascia qui per caricare le foto"; /* codice icona FA camera + testo */
  font-family: "Font Awesome 5 Free"; /* font icone */
  font-weight: 900; /* solid */
  white-space: pre; /* va a capo tra icona e testo */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;
  color: #064420; /* verde scuro per contrasto */
  background: rgba(173, 247, 182, 0.95); /* verde menta chiaro */
  border: 2px dashed #0f5132; /* verde scuro */
  border-radius: .5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

/* visibile quando c'è dragover */
#drop-area.dragover::after {
  opacity: 1;
  transform: scale(1.02);
}

/* Video input */
#videoFileName { vertical-align: middle; }


/* //// */
/* ===== THEME OVERRIDES (append) ===== */
:root{
  --c-bg: #f6f7fb;
  --c-surface: #ffffff;
  --c-sectionbg: #f6f7fb;
  --c-text: #1f2937;      /* slate-800 */
  --c-muted: #6b7280;     /* slate-500 */
  --c-border: #e5e7eb;    /* gray-200 */

  --c-primary: #6c63ff;
  --c-primary-600: #5b54e6;
  --c-primary-700: #4a45cc;
  --c-accent: #00c2a8;    /* tocchino “tech” per highlight */
  --c-warning: #ffb020;   /* evidenze */

  --shadow-xs: 0 1px 2px rgba(17,24,39,.06);
  --shadow-sm: 0 2px 8px rgba(17,24,39,.08);
  --shadow-md: 0 8px 20px rgba(17,24,39,.10);
  --shadow-lg: 0 12px 36px rgba(17,24,39,.14);
}

html, body {
  background: var(--c-bg);
  color: var(--c-text);
}

h1,h2,h3,h4 { color: var(--c-text); letter-spacing: .2px; }
.lead, .subtitle, .sottotitolo { color: var(--c-muted); }

/* Contenitori / card */
.card, .content-box, .cta {
  background: var(--c-surface) !important;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); transition: box-shadow .2s ease; }


.topbar {
  position:relative;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-xs);
}

/* Hero overlay più elegante */
.hero-overlay{
  background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.45));
}
.hero { box-shadow: var(--shadow-lg); border-radius: 12px; }

/* Pulsanti (Bootstrap override) */
.btn-primary{
  background: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
}
.btn-primary:hover{
  background: var(--c-primary-600) !important;
  border-color: var(--c-primary-600) !important;
}
.btn-outline-primary{
  color: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
}
.btn-outline-primary:hover{
  background: var(--c-primary) !important;
  color: #fff !important;
}
.btn-soft{
  background: rgba(108,99,255,.08);
  color: var(--c-primary);
  border: 1px solid rgba(108,99,255,.25);
}
.btn-soft:hover{
  background: rgba(108,99,255,.14);
}

/* Input/focus ring coerente */
.form-control, .form-select, textarea{
  border: 1px solid var(--c-border) !important;
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus, textarea:focus{
  border-color: var(--c-primary) !important;
  box-shadow: 0 0 0 3px rgba(108,99,255,.20) !important;
}

/* Sezioni */
.section {
  background: var(--c-sectionbg);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}

/* Titoli pagina */
h1.page-header{
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
}

h1.page-header {
	font-family: 'Exo 2', sans-serif;
	font-size: 1.8rem;
	color: #702CE4;
	background-color: #f4f4f4;
	padding: 1rem 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	text-align: center;
	max-width: 70rem;
	margin: 1rem auto;
}

.subtitle {
	font-family: 'Exo 2', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: #702CE4;
	text-align: center;
	max-width: 70rem;

	margin: 1rem auto;
}

.page-header, .subtitle, .content-box, .gallery-container {
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}


/* Galleria/thumbnails */
.gallery-container{ gap: 16px; }
.thumb{
  width: 220px; height: 220px; padding: 4px;
  border-radius: 12px; background: #fff;
  box-shadow: var(--shadow-md);
}
.thumb:hover{ transform: translateY(-2px) scale(1.01); box-shadow: var(--shadow-lg); }

/* CTA */
.cta{
  border-left: 5px solid var(--c-primary);
}
.cta a{
  background: var(--c-primary);
}
.cta a:hover{
  background: var(--c-primary-600);
}

/* Drop area allineata alla palette */
#drop-area{
  background: #fff;
  border: 2px dashed var(--c-border);
  border-radius: 12px;
  padding: .75rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-xs);
}
#drop-area:hover{
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}
/* overlay drag coerente con brand */
#drop-area::after{
  content: "\f030\A Rilascia qui per caricare le foto";
  font-family: "Font Awesome 6 Free","Font Awesome 5 Free"; /* fallback */
  font-weight: 900;
  color: #ffffff;
  background: rgba(108,99,255,.92);
  border: 2px dashed rgba(255,255,255,.8);
}
#drop-area.dragover::after{
  transform: scale(1.02);
}

#videoButton {
  border: 1px solid rgba(108,99,255,.5);  /* bordo violetto chiaro */
  color: var(--c-primary);               /* testo violetto */
  font-weight: 500;
  border-radius: 8px;
  padding: .35rem .6rem;
  background: rgba(108,99,255,.12);      /* un po' più saturo al passaggio */
  transition: all .2s ease;
}
#videoButton:hover {
  background: rgba(108,99,255,.06);      /* leggero sfondo colorato */
  color: var(--c-primary-700);           /* testo leggermente più scuro */
  box-shadow: 0 2px 6px rgba(108,99,255,.15);
}


/* Messaggi helper / hint */
.hint-feedback{ color: var(--c-muted) !important; }
.invalid-feedback{ color:#a3a3a3; }

/* Piccoli spazi */
.section + .section { margin-top: 1rem; }


/* balloon - bubble */
.cta-bubble {
  background: linear-gradient(135deg, #fff7e0, #ffeab6); /* caldo, positivo */
  border: 2px solid rgba(255, 193, 7, 0.6);
  border-radius: 24px;
  padding: 1.4rem 1.6rem;
  position: relative;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.cta-bubble h5 {
  color: #d18600;
  font-weight: 700;
  margin-bottom: .8rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.cta-bubble h5 i {
  font-size: 1.3rem;
  color: #ff9800;
}

.cta-bubble ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1rem;
}

.btn-preventivo {
  font-size: 1.4rem;
  padding: 1rem 2rem;
  border-radius: 30px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-preventivo:hover:enabled {
  background: linear-gradient(90deg, #0056b3, #00408a);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-preventivo:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

#submit-hint {
  color: #6c757d;
  font-style: italic;
}


/* Loader overlay */
#global-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.35); /* slate-900/35% */
  backdrop-filter: blur(1px);
}
#global-loader .box {
  min-width: 220px; padding: 14px 16px; border-radius: 12px;
  background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font-weight: 600; text-align: center;
}
#global-loader .spinner {
  width: 28px; height: 28px; margin: 0 auto 10px;
  border: 3px solid #e5e7eb; border-top-color: #6c63ff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

hr.moderno {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #000, transparent);
    background: linear-gradient(to right, transparent, #000, transparent);
    margin: 0.3rem 0;
    border-radius: 2px;
}

.my-5 {
	margin-top: 0.5rem !important;
}

/* Foto Bernardo - riduzione e filtro leggero */
.bernardo-img {
  max-height: 300px;
  object-fit: cover;
  filter: grayscale(20%);
}

/* Foto 500 - leggermente più grande per dare più presenza */
.foto-500 {
  max-height: 380px;
  object-fit: cover;
}

.center {
  text-align: center !important;
}

#validation-guide-list {
  font-size: 0.9rem;
}


  /* feedback sotto i campi, grigio, corsivo */
  .hint-feedback { display:block; color:#6c757d; font-style:italic; margin-top:.25rem; }
  /* niente icone sugli input Bootstrap */
  .form-control.is-invalid, .form-control.is-valid { background-image: none !important; }
  /* bordo neutro anche se invalid */
  .form-control.is-invalid { border-color:#ced4da !important; box-shadow:none !important; }
  .form-control.is-valid   { box-shadow:none !important; }
  /* guida elenco */
  #validation-guide-list { list-style:none; padding-left:0; margin:0; }
  #validation-guide-list li { display:flex; align-items:left; gap:.5rem; margin:.25rem 0; }
  #validation-guide-list li .ico { width:1.25rem; text-align:center; font-size:.95rem; opacity:.75; color:#6c757d; }
  #validation-guide-list li.ok .ico { color:#198754; opacity:.9; }
  #validation-guide-list li .txt { color:#495057;  text-align: left;}
  /* submit disabilitato */
  button[type=\"submit\"]:disabled { background-color:#ccc !important; border-color:#bbb !important; color:#666 !important; cursor:not-allowed; }
  #submit-hint { font-size:.85rem; color:#aaa; margin-top:.25rem; }

  /* hamburger menu */
    .topbar{position:relative;}

  .hamburger-btn {
    cursor: pointer;
    font-size: 26px;
    border: none;
    background: none;
    padding: 8px;
    z-index: 1001;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 500ms ease;
    flex-direction: column;
    background:#f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 0 15px;
  }

  .menu a {
    display:block;
    padding:8px;
    text-decoration:none;
    color:#000;
  }

  /* pagina corrente */
  .menu a.active {
    background:#C0C0C0;      
    color:#fff;
  }

  /* effetto tap/click */
  .menu a:active {
    background:#C0C0C0;
  }

  .menu a:hover {
    background:#E0E0E0;
  }

  .menu.open {
    max-height:400px;
    padding-top:15px;
    padding-bottom:15px;
  }


  /* pagr header box and subtitle */
  .page-header-box {
  background: #f9f9fc; /* sfondo del box */
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 70rem;
  margin: 1rem auto 1.2rem auto; /* meno spazio sotto */
  overflow: hidden; /* arrotonda anche la fascia del sottotitolo */
  text-align: center;
}

.page-header-box h1 {
  font-family: 'Tahoma', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #702CE4;
  margin: 0;
  padding: 1rem 1.5rem 0.6rem 1.5rem;
}

.page-header-box .subtitle {
  font-family: 'Tahoma', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #4a4a4a;
  background: #f3f3f3;   
  padding: 0.6rem 1.5rem;
  margin: 0;
  
}

/* evita scroll orizzontale accidentale */
html, body { overflow-x: hidden; }

/* contenitori interni: niente overflow dalla row */
.content-box, .card { overflow: hidden; }

.margin-left-1rem { margin-left: 1rem !important; }
.margin-right-1rem { margin-right: 1rem !important; }
.margin-bottom-1rem { margin-bottom: 1rem !important; }
.margin-top-1rem { margin-top: 1rem !important; }
.padding-left-1rem { padding-left: 1rem !important; }
.padding-right-1rem { padding-right: 1rem !important; }
.padding-top-1rem { padding-top: 1rem !important; }
.padding-bottom-1rem { padding-bottom: 1rem !important; }

#sotto-titolo-preventivo {
  position: sticky;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background-color: #6c63ff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: none; /* nascosto di default */
  transition: background-color 0.3s ease;
}

