﻿/* Stili del sito prenotazioni matrimonio. Usa le variabili del template Travexa (style.css). */
:root {
  --primary: #3e4a3d;            /* verde cipresso */
  --primary-rgb: rgba(62, 74, 61);
  --secondary: #8a9a7b;          /* salvia */
  --accent: #b08d57;             /* oro antico */
  --accent-rgb: 176, 141, 87;
  --accent-hover: #957342;
  --rose: #ead9d0;               /* rosa cipria */
  --ivory: #fbf7f0;
  --bg-light: #fbf7f0;
  --text-dark: #3b3a36;
  --text-muted: #7a766c;
  --border-color: #e6dccb;
  --font-body: 'Jost', system-ui, -apple-system, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-brush: 'Pinyon Script', 'Great Vibes', cursive;
  --shadow-sm: 0 2px 10px rgba(90, 70, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(90, 70, 40, 0.10);
  --shadow-accent: 0 8px 20px rgba(176, 141, 87, 0.30);
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 14px; --radius-pill: 40px;
}
body { font-family: var(--font-body); color: var(--text-dark); background: var(--bg-light); }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--primary); }
.brush { font-family: var(--font-brush); }

/* Header */
.site-nav { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50; }
.site-nav .navbar-brand { font-family: var(--font-brush); font-size: 2rem; color: var(--primary); line-height: 1; }
.site-nav .nav-link { font-weight: 500; color: var(--primary); padding: .9rem 1rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--accent); }
.site-nav .btn-nav { background: var(--accent); color: #fff !important; border-radius: var(--radius-pill); padding: .5rem 1.25rem; font-weight: 600; }
.site-nav .btn-nav:hover { background: var(--accent-hover); }

/* Pulsanti (sovrascrivono i Button di ASP.NET) */
.btn-wed { background: var(--accent); border: 0; color: #fff !important; font-weight: 600; border-radius: var(--radius-pill);
  padding: .8rem 1.9rem; box-shadow: var(--shadow-accent); transition: var(--transition); cursor: pointer; display: inline-block; }
.btn-wed:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-wed-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary) !important; font-weight: 600;
  border-radius: var(--radius-pill); padding: .7rem 1.6rem; cursor: pointer; display: inline-block; }
.btn-wed-outline:hover { background: var(--primary); color: #fff !important; }
.btn-wed[disabled], .btn-wed-outline[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { background: linear-gradient(180deg, rgba(38,46,36,.55) 0%, rgba(38,46,36,.35) 45%, rgba(38,46,36,.75) 100%), url('../images/hero.jpg') center 60% / cover no-repeat, #3e4a3d; color: #fff; position: relative; overflow: hidden; }
.hero-inner { padding-top: 6rem; padding-bottom: 6.5rem; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-family: var(--font-brush); font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; margin-bottom: .5rem; }
.hero .lead-date { font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.hero .where { opacity: .8; }
.couple-photo { width: min(100%, 420px); aspect-ratio: 4 / 5; margin: 0 auto; border-radius: 210px 210px var(--radius-lg) var(--radius-lg);
  overflow: hidden; border: 6px solid rgba(255,255,255,.85); box-shadow: 0 24px 60px rgba(0,0,0,.35); background: rgba(255,255,255,.1); position: relative; }
.couple-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.couple-photo.no-photo { display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; font-size: .95rem; color: rgba(255,255,255,.8); }

/* Sezioni */
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title small { display: block; font-family: var(--font-brush); font-size: 1.6rem; color: var(--accent); }
.step-card { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; height: 100%; box-shadow: var(--shadow-sm); text-align: center; }
.step-card .ico { width: 56px; height: 56px; border-radius: 50%; background: rgba(176,141,87,.14); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.room-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 100%; }
.room-card .head { background: var(--primary); color: #fff; padding: 1.25rem 1.5rem; }
.room-card .head h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.room-card .body { padding: 1.5rem; }
.price { font-size: 1.9rem; font-weight: 700; color: var(--accent); }

/* Pannelli e form */
.panel { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.panel h2, .panel h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.form-label { font-weight: 600; font-size: .9rem; color: var(--primary); }
.form-control, .form-select { border-radius: var(--radius-md); padding: .7rem .95rem; border-color: var(--border-color); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(176,141,87,.22); }
.page-head { background: var(--primary); color: #fff; padding: 2.5rem 0; }
.page-head h1 { color: #fff; font-size: 2rem; margin: 0; }
.page-head p { margin: .35rem 0 0; opacity: .8; }

.room-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }
.room-row:last-child { border-bottom: 0; }
.room-row .info { flex: 1 1 240px; }
.room-row .info strong { color: var(--primary); font-size: 1.05rem; }
.room-row .qty { width: 110px; }
.badge-soft { padding: .35rem .8rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .8rem; }
.summary-box { background: #faf6ef; border: 1px dashed var(--border-color); border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.bank-box { background: #f7f0e4; border: 1px solid #e4d3b5; border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.bank-box dt { color: var(--text-muted); font-weight: 500; }
.total-line { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.error-msg { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-md); padding: .75rem 1rem; margin-bottom: 1rem; display: block; }
.ok-msg { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-md); padding: .75rem 1rem; margin-bottom: 1rem; display: block; }

/* Timeline stato */
.timeline { display: flex; gap: .5rem; margin: 1rem 0; }
.timeline .st { flex: 1; text-align: center; font-size: .78rem; color: var(--text-muted); position: relative; padding-top: 1.7rem; }
.timeline .st::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--border-color); }
.timeline .st.done { color: var(--primary); font-weight: 600; }
.timeline .st.done::before { background: var(--accent); }

/* Tabelle admin */
.table-wed th { background: var(--primary); color: #fff; font-weight: 600; white-space: nowrap; }
.table-wed td { vertical-align: middle; }
.stat { background: #fff; border-radius: var(--radius-md); padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); }
.stat .n { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat .l { color: var(--text-muted); font-size: .85rem; }

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 2rem 0; margin-top: 3rem; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer .brush { font-size: 1.8rem; color: #fff; }

@media (max-width: 575px) {
  .section { padding: 2.5rem 0; }
  .timeline .st { font-size: .68rem; }
}

/* Spaziatura voci di menu */
.site-nav .nav-link { padding-left: 1.1rem; padding-right: 1.1rem; }

/* Admin: evidenziazione righe per stato */
.table tr.row-st-attesa > td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.table tr.row-st-pagato > td:first-child { box-shadow: inset 4px 0 0 #0ea5e9; }
.table tr.row-st-conf > td:first-child { box-shadow: inset 4px 0 0 #16a34a; }
.table tr.row-st-ann > td:first-child { box-shadow: inset 4px 0 0 #9ca3af; }
.table tr.row-st-ann { opacity: .65; }

/* Popup admin sempre sopra allo sfondo e al menu */
.modal { z-index: 2055 !important; }
.modal-backdrop { z-index: 2050 !important; }


/* ================= Tema "romantico toscano" ================= */
body { background: var(--ivory); font-weight: 400; letter-spacing: .01em; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 600; color: var(--primary); letter-spacing: 0; }
h2 { font-size: 2.4rem; } h5 { font-size: 1.35rem; }
a { color: var(--accent-hover); }
.brush { font-family: var(--font-brush); font-weight: 400; }

/* header */
.site-nav { background: rgba(251,247,240,.95); backdrop-filter: blur(6px); box-shadow: none; border-bottom: 1px solid var(--border-color); }
.site-nav .navbar-brand { font-family: var(--font-brush); font-size: 2.3rem; color: var(--primary); }
.site-nav .nav-link { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--primary); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--accent); }
.site-nav .btn-nav { background: transparent; border: 1px solid var(--accent); color: var(--accent-hover) !important; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; padding: .5rem 1.4rem; }
.site-nav .btn-nav:hover { background: var(--accent); color: #fff !important; }

/* pulsanti */
.btn-wed { background: var(--accent); letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; font-weight: 500; padding: .95rem 2.2rem; box-shadow: none; border: 1px solid var(--accent); }
.btn-wed:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: none; }
.btn-wed-outline { border: 1px solid var(--accent); color: var(--accent-hover) !important; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 500; padding: .85rem 1.9rem; }
.btn-wed-outline:hover { background: var(--accent); color: #fff !important; }
.btn-primary { background: var(--accent) !important; border-color: var(--accent) !important; }

/* hero */
.hero { background: linear-gradient(180deg, rgba(38,46,36,.35) 0%, rgba(38,46,36,.25) 40%, rgba(38,46,36,.70) 100%), url('../images/hero.jpg') center 60% / cover no-repeat, #3e4a3d; }
.hero-inner { padding-top: 7rem; padding-bottom: 7.5rem; }
.hero-frame { display: inline-block; padding: 3rem clamp(1.5rem, 6vw, 4.5rem) 3.2rem; border: 1px solid rgba(255,255,255,.55); outline: 1px solid rgba(255,255,255,.25); outline-offset: 8px; background: rgba(38,46,36,.18); backdrop-filter: blur(2px); }
.hero h1 { font-family: var(--font-brush); font-weight: 400; font-size: clamp(3.4rem, 9vw, 6.6rem); line-height: 1.05; }
.hero .lead-date { font-family: var(--font-body); font-size: .9rem; letter-spacing: .38em; opacity: .95; font-weight: 400; }
.hero .where { letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; opacity: .9; }
.orn { display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--accent); margin: .9rem 0; }
.orn::before, .orn::after { content: ""; height: 1px; width: 70px; background: currentColor; opacity: .7; }
.hero .orn { color: #e6cf9f; }

/* save the date */
.save-date { background: var(--rose); text-align: center; padding: 2.2rem 0; border-bottom: 1px solid var(--border-color); }
.save-date .big { font-family: var(--font-heading); font-size: clamp(1.6rem, 4.2vw, 2.6rem); color: var(--primary); letter-spacing: .12em; }
.save-date .count { display: flex; justify-content: center; gap: 2rem; margin-top: .9rem; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-muted); }
.save-date .count b { display: block; font-family: var(--font-heading); font-size: 2rem; letter-spacing: 0; color: var(--accent-hover); font-weight: 600; line-height: 1; }

/* sezioni */
.section { padding: 5rem 0; }
.section-title small { font-family: var(--font-brush); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.section-title h2 { position: relative; padding-bottom: 1.1rem; }
.section-title h2::after { content: "\2766"; position: absolute; left: 50%; bottom: -.6rem; transform: translateX(-50%); color: var(--accent); font-size: 1rem; background: var(--ivory); padding: 0 .7rem; }
.section-title h2::before { content: ""; position: absolute; left: 50%; bottom: .2rem; transform: translateX(-50%); width: 120px; height: 1px; background: var(--accent); opacity: .6; }
.step-card { border: 1px solid var(--border-color); box-shadow: none; background: #fffdf9; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.step-card .ico { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.room-card { border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); background: #fffdf9; border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }
.room-card .head { background: var(--rose); color: var(--primary); text-align: center; padding: 2.6rem 1.5rem 1.2rem; }
.room-card .head h3 { color: var(--primary); font-size: 1.7rem; }
.room-card .body { text-align: center; }
.price { font-family: var(--font-heading); font-weight: 600; color: var(--accent-hover); }

/* form e pannelli */
.panel { border: 1px solid var(--border-color); box-shadow: none; background: #fffdf9; }
.panel h2, .panel h3 { font-size: 1.6rem; }
.form-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--primary); }
.form-control, .form-select { background: #fff; border: 1px solid var(--border-color); }
.page-head { background: var(--rose); color: var(--primary); text-align: center; padding: 3.2rem 0; border-bottom: 1px solid var(--border-color); }
.page-head h1 { color: var(--primary); font-family: var(--font-brush); font-weight: 400; font-size: clamp(2.6rem, 6vw, 3.8rem); }
.page-head p { opacity: 1; color: var(--text-muted); letter-spacing: .06em; }
.summary-box { background: #faf6ef; border: 1px dashed #d8c7a5; }
.bank-box { background: #f7f0e4; border: 1px solid #e4d3b5; }
.error-msg { background: #fbf0ee; border-color: #ecc9c2; color: #9b3a2e; }
.ok-msg { background: #f1f5ec; border-color: #cfdcc2; color: #3f5a2e; }
.timeline .st.done::before { background: var(--accent); }
.timeline .st.done { color: var(--primary); }
.badge-soft { letter-spacing: .06em; }

/* tabelle e statistiche admin */
.table-wed th { background: var(--primary); letter-spacing: .06em; font-weight: 500; }
.stat { border: 1px solid var(--border-color); box-shadow: none; background: #fffdf9; }
.stat .n { font-family: var(--font-heading); }

/* footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,.82); padding: 3rem 0 2rem; margin-top: 0; border-top: 3px double var(--accent); }
.site-footer .brush { font-size: 2.4rem; color: #f0dfb8; }
.site-footer a { color: #f0dfb8; }

@media (max-width: 575px) {
  .section { padding: 3rem 0; }
  .hero-inner { padding-top: 4rem; padding-bottom: 4.5rem; }
  .hero-frame { padding: 2rem 1.25rem; outline-offset: 5px; }
  .save-date .count { gap: 1.1rem; }
  .room-card { border-radius: 110px 110px var(--radius-lg) var(--radius-lg); }
}

/* Foto camere e carosello */
.room-gallery { position: relative; overflow: hidden; background: #efe8da; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; }
.room-gallery .carousel-inner, .room-gallery .carousel-item { height: 100%; }
.room-gallery .carousel-control-prev, .room-gallery .carousel-control-next { width: 2.6rem; opacity: 0; transition: opacity .2s; }
.room-gallery:hover .carousel-control-prev, .room-gallery:hover .carousel-control-next { opacity: .95; }
.room-gallery .carousel-control-prev-icon, .room-gallery .carousel-control-next-icon { background-color: rgba(38,46,36,.55); border-radius: 50%; background-size: 55%; width: 2rem; height: 2rem; }
.room-gallery .carousel-indicators { margin-bottom: .4rem; }
.room-gallery .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; margin: 0 3px; }
.room-card .photo { height: 230px; border-radius: 160px 160px 0 0; }
.room-card .photo + .head { padding-top: 1.2rem; }
.room-thumb { width: 190px; height: 128px; border-radius: var(--radius-md); flex: 0 0 auto; }
.room-thumb .carousel-indicators { display: none; }
@media (hover: none) { .room-gallery .carousel-control-prev, .room-gallery .carousel-control-next { opacity: .9; } }
@media (max-width: 575px) { .room-thumb { width: 100%; height: 200px; } .room-card .photo { height: 190px; border-radius: 110px 110px 0 0; } }

/* Ingrandimento foto (lightbox) */
.room-gallery img { cursor: zoom-in; }
body.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 3000; background: rgba(24,28,22,.93); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4rem 3rem; }
.lb[hidden] { display: none; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 50px rgba(0,0,0,.5); cursor: default; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: .9rem; text-align: center; color: rgba(255,255,255,.8); font-size: .85rem; letter-spacing: .08em; }
.lb-x, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 2.8rem; height: 2.8rem; font-size: 1.9rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 .2rem; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-x { top: .9rem; right: 1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .8rem; } .lb-next { right: .8rem; }
.lb.single .lb-nav { display: none; }
@media (max-width: 575px) { .lb { padding: 3.5rem .5rem 2.8rem; } .lb-nav { top: auto; bottom: .6rem; transform: none; } }
