// i18n.jsx — copy strings + language context

const STRINGS = {
  en: {
    saveTheDate: "Save the date",
    monogramAlt: "S & L",
    estTuscany: "Tuscany · 2027",
    dateShort: "3 . VII . 2027",

    nav: {
      home: "Home",
      agenda: "Agenda",
      travel: "Travel",
      stay: "Stay",
      montalcino: "Activities",
      gallery: "Gallery",
      registry: "Gifts",
      faq: "FAQ",
      openMenu: "Open menu",
      closeMenu: "Close menu",
    },

    home: {
      inviteLine1: "request the honour of your presence at their wedding",
      inviteLine2: "",
      day: "Saturday · Third of July",
      year: "2027",
      dayItalian: "",
      ceremonyAt: "Ceremony begins at 6pm in the evening",
      villa: "Villa Ferrano",
      place: "Montalcino · Tuscany",

      photoCaptions: ["on the road", "alpine afternoon", "a quiet evening"],

      noteChapter: "Chapter I",
      noteTitle: "A note from us",
      noteSub: "Da parte nostra",
      noteP1:
        "We can't quite believe we're getting to do this — gather everyone we love in one place, under the Tuscan sun, for one long weekend.",
      noteP2:
        "Villa Ferrano sits on a hillside between Montalcino and the Val d'Orcia: cypresses, vines, and a wide stone terrace looking out toward Monte Amiata. It's the sort of place we've been daydreaming about for years.",
      noteP3:
        "We're so grateful you're considering coming all this way. Whatever you decide, please know it means the world.",
      noteSig: "— Sara & Lorenzo",

      whenChapter: "Chapter II",
      whenTitle: "The weekend",
      whenSub: "Arrive Friday, leave Sunday",
      whenP:
        "We'd love for you to make a weekend of it. Most guests will arrive on Friday 2 July and leave on Sunday 4 July - with fun activities organised throughout the weekend. The wedding itself runs on Saturday from 18:00 ownards - ceremony, aperitivo, dinner, music, cake.",
      whenCtaAgenda: "See the full agenda",

      rsvpChapter: "Chapter I",
      rsvpTitle: "Will you join us?",
      rsvpSub: "Sarete dei nostri?",
      rsvpIntro:
        "A note before you go - we'll follow up with formal invitations and details closer to the date. For now, just a soft yes-or-no so we can start planning.",
      rsvpCta: "Reply",
    },

    rsvp: {
      chapter: "RSVP",
      title: "Reply",
      sub: "Rispondi",
      intro:
        "We can't wait to hear from you. There's plenty of time — but the sooner we know, the easier the planning.",
      nameLabel: "Your name(s)",
      namePlaceholder: "e.g. Marco & Giulia Rossi",
      attendingLabel: "Will you come to the wedding?",
      attendingYes: "Attending",
      attendingNo: "Regretfully not",
      dietLabel: "Dietary requirements",
      dietPlaceholder: "Allergies, restrictions, anything we should know",
      messageLabel: "A message for us",
      messagePlaceholder: "Optional — but always read with love",
      submit: "Send reply",
      thanksTitle: "Grazie mille.",
      thanksBody:
        "Your reply is saved. We'll be in touch soon with the rest of the details.",
      thanksBtn: "Send another reply",
    },

    agenda: {
      chapter: "The weekend",
      title: "Agenda",
      sub: "Programma",
      lede: "A loose shape for now — we'll fill in the details, addresses and timings closer to the day. Plan to arrive on Friday 2 July and leave on Sunday 4 July.",

      d1Label: "Friday · 2 July",
      d1Title: "Arrival",
      d1Sub: "Venerdì",
      d1Items: [
        {
          time: "anytime",
          what: "Settle in",
          note: "Check into your accommodation, find your bearings, take a walk.",
        },
        {
          time: "evening",
          what: "Casual aperitivo",
          note: "An informal gathering in Montalcino for those who've arrived. Details to follow — drop in if you can.",
        },
      ],

      d2Label: "Saturday · 3 July",
      d2Title: "The day",
      d2Sub: "Il grande giorno",
      d2Items: [
        {
          time: "18:00",
          what: "Ceremony",
          note: "Outdoor ceremony at Villa Ferrano. Please arrive 15 minutes early.",
        },
        {
          time: "18:45",
          what: "Aperitivo",
          note: "Prosecco, Brunello, antipasti — and time to enjoy the view.",
        },
        {
          time: "20:30",
          what: "Dinner",
          note: "A long Italian dinner under the stars.",
        },
        {
          time: "22:30",
          what: "Music & dancing",
          note: "Until our feet give out.",
        },
        {
          time: "23:30",
          what: "Cake",
          note: "A late slice of something sweet.",
        },
        {
          time: "00:00",
          what: "Carriages",
          note: "Buses back to Montalcino and surrounding stays.",
        },
      ],

      d3Label: "Sunday · 4 July",
      d3Title: "Farewell",
      d3Sub: "Arrivederci",
      d3Items: [
        {
          time: "late morning",
          what: "Slow brunch",
          note: "An open, easy goodbye. Details to follow.",
        },
        {
          time: "afternoon",
          what: "Departures",
          note: "Safe travels home — or onward into Tuscany.",
        },
      ],

      dressNote:
        "Dress code: elegant — you might be on grass for part of the ceremony.",
    },

    travel: {
      chapter: "Getting there",
      title: "Travel",
      sub: "Viaggio",
      lede: "Montalcino is roughly two hours south of Florence and two hours and a half from Rome. We're putting together transport tips — full details coming soon.",
      comingSoonTag: "Coming soon",
      comingSoonTitle: "Detailed transport info is in progress",
      comingSoonBody:
        "We'll publish recommended airports, train routes, and any shuttle service we organise once it's confirmed. In the meantime, a rough sketch below.",
      sectionAir: "By air",
      sectionAirBody:
        "The closest international airports are Rome Fiumicino (FCO) and Pisa (PSA). From any of these, the most flexible option is to rent a car.",
      sectionTrain: "By train",
      sectionTrainBody:
        "Trains run frequently to Buonconvento or Chiusi-Chianciano Terme. From either station, taxis and rideshares can reach Montalcino in 25–45 minutes.",
      sectionCar: "By car",
      sectionCarBody:
        "We strongly recommend renting a car if you can — the surrounding countryside is part of the experience. Parking will be available at Villa Ferrano.",
      sectionShuttle: "Shuttle",
      sectionShuttleBody:
        "On the wedding day we'll arrange transport between Montalcino and Villa Ferrano. We'll share pickup points and times closer to the date.",
    },

    stay: {
      chapter: "Where to sleep",
      title: "Accommodation",
      sub: "Alloggio",
      lede: "Montalcino is small but it has rooms for every taste — from agriturismi tucked into vineyards to little hotels in the medieval centre. We'll share more information soon.",
      comingSoonTag: "Coming soon",
      comingSoonTitle: "More info is on the way",
      comingSoonBody: "We're putting together some options - more coming soon.",
      sectionCentre: "In Montalcino",
      sectionCentreBody:
        "Best if you'd like to wander to dinner, walk to a bar, and feel inside the town. Expect cobblestones and views of the Val d'Orcia.",
      sectionCountry: "In the countryside",
      sectionCountryBody:
        "Agriturismi and villas closer to vineyards and Villa Ferrano itself. Best if you have a car and want a slower pace.",
      sectionSpa: "Near the hot springs",
      sectionSpaBody:
        "Bagno Vignoni and Bagni San Filippo are 30–45 minutes away and worth a night for the natural pools alone.",
    },

    montalcino: {
      chapter: "The area",
      title: "Things to do",
      sub: "Cose da fare",
      lede: "If you're making a weekend of it — and we hope you are — here are a few favourites of ours in and around Montalcino. Most are within an hour's drive.",
      items: [
        {
          name: "Brunello tasting",
          desc: "Visit one of the cantine for a tasting — Banfi, Caparzo, Il Poggione, Argiano. Most need a reservation.",
          meta: "Wine · 10–30 min",
        },
        {
          name: "Pienza",
          desc: "The 'ideal Renaissance town' — tiny, walkable, full of pecorino. Perfect for a slow lunch and a stroll along the wall.",
          meta: "Town · 30 min",
        },
        {
          name: "San Quirico d'Orcia",
          desc: "Beautifully preserved medieval village with one of Tuscany's prettiest gardens (Horti Leonini).",
          meta: "Town · 25 min",
        },
        {
          name: "Bagno Vignoni",
          desc: "An ancient village built around a steaming thermal pool. Soak at the free springs below, or book the spa above.",
          meta: "Spa · 35 min",
        },
        {
          name: "Abbazia di Sant'Antimo",
          desc: "A 12th-century Romanesque abbey in a valley of olive groves. Quiet, atmospheric, beautiful.",
          meta: "Site · 15 min",
        },
        {
          name: "Val d'Orcia drive",
          desc: "The classic cypress-lined road. Start at Pienza, end at Bagno Vignoni — golden hour is unreal.",
          meta: "Drive · 45 min loop",
        },
        {
          name: "Montalcino itself",
          desc: "The fortress (Fortezza), wine bars on the piazza, narrow streets and views in every direction.",
          meta: "Town · walking",
        },
      ],
    },

    gallery: {
      chapter: "Photographs",
      title: "Gallery",
      sub: "Galleria",
      lede: "Real photos coming soon. For now — placeholders, and a promise.",
      caption: "Photos and details to follow",
    },

    registry: {
      chapter: "On gifts",
      title: "Gifts",
      sub: "Lista nozze",
      lede: "Your being there is more than enough. Truly. But if you'd like to contribute to our honeymoon or our first home together, we'd be very grateful.",
      comingSoonTag: "Coming soon",
      comingSoonTitle: "We're setting things up",
      comingSoonBody:
        "A registry and a small honeymoon fund are in the works. We'll share the details here — and on the formal invitation — closer to the date.",
      sectionHoney: "Honeymoon",
      sectionHoneyBody:
        "We're planning to disappear somewhere quiet for a few weeks after the wedding. Contributions toward the trip would mean the world.",
      sectionHome: "Our home",
      sectionHomeBody:
        "A small curated list of things for the home we're building together. Linkable, no pressure.",
    },

    faq: {
      chapter: "Questions",
      title: "FAQ",
      sub: "Domande frequenti",
      lede: "A few common ones answered here. If you can't find what you're looking for, write to us — the address is at the bottom of every page.",
      items: [
        {
          q: "When and where?",
          a: "Saturday 3 July 2027 at Villa Ferrano, just outside Montalcino in Tuscany. The day runs from 18:00 till midnight.",
        },
        {
          q: "What's the dress code?",
          a: "Elegant — garden-formal. The ceremony and dinner are outdoors, partly on grass and gravel, so block heels or flats are much friendlier than stilettos. Bring a light layer for after dinner.",
        },
        {
          q: "How many days should I plan for?",
          a: "Plan to arrive on Friday 2 July and leave on Sunday 4 July. We'll do an informal aperitivo on Friday and a slow brunch-style farewell on Sunday.",
        },
        {
          q: "Can I bring a plus-one?",
          a: "If your invitation names a plus-one, yes — please include their name in the RSVP. If you're unsure, just write to us.",
        },
        {
          q: "Are children welcome?",
          a: "Children of close family are very welcome. Otherwise, this one is grown-ups only — we want everyone, including parents, to relax.",
        },
        {
          q: "Will there be transport on the day?",
          a: "Yes — we'll organise shuttles between Montalcino (and a few nearby stays) and Villa Ferrano. Pickup points and times will be shared closer to the date.",
        },
        {
          q: "What about dietary requirements?",
          a: "Let us know in your RSVP. We'll do our best for every allergy and restriction.",
        },
        {
          q: "Gifts?",
          a: "Your presence is gift enough. If you'd like to do more, see the Gifts page — there'll be a registry and a small honeymoon fund.",
        },
        {
          q: "When do you need to know if I can come?",
          a: "We'd love a soft yes-or-no by autumn 2026 so we can plan. A firm RSVP can come with the formal invitation in spring 2027.",
        },
      ],
    },

    footer: {
      tagline: "Sara & Lorenzo",
      date: "3 July 2027 · Villa Ferrano · Montalcino",
      contact: "Questions? Write to us at saraelorenzo@gmail.com",
      sign: "Con amore",
    },
  },

  it: {
    saveTheDate: "Salva la data",
    monogramAlt: "S & L",
    estTuscany: "Toscana · 2027",
    dateShort: "3 . VII . 2027",

    nav: {
      home: "Home",
      agenda: "Programma",
      travel: "Trasporti",
      stay: "Alloggio",
      montalcino: "Attività",
      gallery: "Galleria",
      registry: "Regali",
      faq: "FAQ",
      openMenu: "Apri menu",
      closeMenu: "Chiudi menu",
    },

    home: {
      inviteLine1: "hanno il piacere di invitarvi al loro matrimonio",
      inviteLine2: "",
      day: "Sabato · 3 Luglio 2027",
      year: "",
      dayItalian: "",
      ceremonyAt: "ore 18.00 circa",
      villa: "Villa Ferrano",
      place: "Montalcino · Toscana",

      photoCaptions: [
        "in viaggio",
        "pomeriggio sulle alpi",
        "una sera tranquilla",
      ],

      noteChapter: "Capitolo I",
      noteTitle: "",
      noteSub: "Da parte nostra",
      noteP1:
        "Ancora non ci sembra vero — riunire tutte le persone che amiamo in un solo posto, sotto il sole della Toscana, per un lungo fine settimana.",
      noteP2:
        "Villa Ferrano si trova su una collina tra Montalcino e la Val d'Orcia: cipressi, vigneti, e una grande terrazza in pietra che guarda verso il Monte Amiata. È esattamente il posto che sognavamo da anni.",
      noteP3:
        "Vi siamo davvero grati anche solo per aver considerato un viaggio così lungo. Qualunque sia la vostra risposta, sappiate che per noi vuol dire tantissimo.",
      noteSig: "— Sara & Lorenzo",

      whenChapter: "Capitolo II",
      whenTitle: "Il fine settimana",
      whenSub: "Arrivo venerdì, partenza domenica",
      whenP:
        "Non vediamo l'ora di festeggiare insieme durante questo weekend. La maggior parte degli ospiti arriverà venerdì 2 luglio e partirà domenica 4 luglio. Il giorno del matrimonio sarà dalle 18:00 fino a mezzanotte circa.",
      whenCtaAgenda: "Guarda il programma",

      rsvpChapter: "Capitolo I",
      rsvpTitle: "Vi aspettiamo",
      rsvpSub: "Conferma la presenza al matrimonio",
      rsvpIntro:
        "A breve manderemo tutti i dettagli. Vi invitiamo a confermare la vostra presenza il prima possibile, per aiutarci nell'organizzazione.",
      rsvpCta: "Rispondi",
    },

    rsvp: {
      chapter: "RSVP",
      title: "Rispondi",
      sub: "Reply",
      intro:
        "Non vediamo l'ora di sentirti. C'è tutto il tempo — ma prima lo sappiamo, più facile sarà l'organizzazione.",
      nameLabel: "Il tuo nome (o nomi)",
      namePlaceholder: "es. Marco & Giulia Rossi",
      attendingLabel: "È gradita conferma entro il 30 Ottobre 2026",
      attendingYes: "Sarò presente",
      attendingNo: "Purtroppo non potrò esserci",
      dietLabel: "Esigenze alimentari",
      dietPlaceholder: "Allergie, restrizioni, qualsiasi cosa da sapere",
      messageLabel: "Un messaggio per noi",
      messagePlaceholder: "Facoltativo — ma sempre letto con affetto",
      submit: "Invia risposta",
      thanksTitle: "Grazie mille.",
      thanksBody:
        "La tua risposta è stata salvata. Ti scriveremo presto con tutti i dettagli.",
      thanksBtn: "Invia un'altra risposta",
    },

    agenda: {
      chapter: "Il fine settimana",
      title: "Programma",
      sub: "Agenda",
      lede: "Programma approssimativo del weekend. Aggiungeremo più dettagli e orari a breve!",

      d1Label: "Venerdì · 2 Luglio",
      d1Title: "Arrivo",
      d1Sub: "Friday",
      d1Items: [
        {
          time: "pomeriggio",
          what: "Arrivare a Villa Ferrano",
          note: "Check-in, prendere confidenza con il posto, una passeggiata.",
        },
        {
          time: "sera",
          what: "Aperitivo informale",
          note: "Un incontro informale a Montalcino per chi è già arrivato. Dettagli a seguire — passa quando puoi.",
        },
      ],

      d2Label: "Sabato · 3 Luglio",
      d2Title: "Il grande giorno",
      d2Sub: "The day",
      d2Items: [
        {
          time: "18:00",
          what: "Cerimonia",
          note: "Cerimonia all'aperto a Villa Ferrano. Si prega di arrivare 15 minuti in anticipo.",
        },
        {
          time: "18:45",
          what: "Aperitivo",
          note: "Prosecco, Brunello, antipasti — e tempo per godersi il panorama.",
        },
        {
          time: "20:30",
          what: "Cena",
          note: "Una lunga cena italiana sotto le stelle.",
        },
        {
          time: "22:30",
          what: "Musica & balli",
          note: "Fino a non sentire più i piedi.",
        },
        {
          time: "23:30",
          what: "Torta",
          note: "Una fetta di dolce a tarda ora.",
        },
        {
          time: "00:00",
          what: "La festa continua...",
          note: "",
        },
      ],

      d3Label: "Domenica · 4 Luglio",
      d3Title: "Saluti",
      d3Sub: "Farewell",
      d3Items: [
        {
          time: "mattinata",
          what: "Brunch",
          note: "Un saluto aperto e tranquillo. Dettagli a seguire.",
        },
        {
          time: "pomeriggio",
          what: "Partenze",
          note: "Buon viaggio — o avanti, verso il resto della Toscana.",
        },
      ],

      dressNote: "Dress code: elegante ma comodo sull'erba.",
    },

    travel: {
      chapter: "Come arrivare",
      title: "Trasporti",
      sub: "Travel",
      lede: "Montalcino si trova circa due ore a sud di Firenze e due ore e mezza da Roma. Stiamo preparando una guida ai trasporti - i dettagli completi arriveranno presto.",
      comingSoonTag: "In arrivo",
      comingSoonTitle:
        "Le informazioni dettagliate sui trasporti sono in lavorazione",
      comingSoonBody:
        "Pubblicheremo aeroporti consigliati, treni e l'eventuale navetta che organizzeremo, non appena confermati. Per il momento, un'idea generale qui sotto.",
      sectionAir: "Aereo",
      sectionAirBody:
        "Gli aeroporti internazionali più vicini sono Roma Fiumicino (FCO) e Pisa (PSA). Da qua, l'opzione più comoda è noleggiare un'auto.",
      sectionTrain: "In treno",
      sectionTrainBody:
        "I treni fermano frequentemente a Buonconvento o a Chiusi-Chianciano Terme. Da entrambe le stazioni, taxi o car-sharing arrivano a Montalcino in 25–45 minuti.",
      sectionCar: "In auto",
      sectionCarBody:
        "Consigliamo vivamente di noleggiare un'auto se possibile — la campagna intorno fa parte dell'esperienza. Sarà disponibile il parcheggio a Villa Ferrano.",
      sectionShuttle: "Navetta",
      sectionShuttleBody:
        "Il giorno del matrimonio organizzeremo i trasporti tra Montalcino e Villa Ferrano. Condivideremo punti di ritrovo e orari più avanti.",
    },

    stay: {
      chapter: "Dove dormire",
      title: "Alloggio",
      sub: "Stay",
      lede: "Condivideremo qua informazioni e consigli per l'alloggio a breve.",
      comingSoonTag: "In arrivo",
      comingSoonTitle: "Informazioni su alloggi a breve",
      comingSoonBody: "Aggiungeremo presto informazioni e link",
      sectionCentre: "In Montalcino",
      sectionCentreBody:
        "Ideale se vi piace andare a cena a piedi, fare un giro al bar e sentirsi dentro al paese. Ciottoli e vista sulla Val d'Orcia.",
      sectionCountry: "In campagna",
      sectionCountryBody:
        "Agriturismi e ville più vicini ai vigneti e a Villa Ferrano. Meglio se avete l'auto e volete ritmi lenti.",
      sectionSpa: "Vicino alle terme",
      sectionSpaBody:
        "Bagno Vignoni e Bagni San Filippo sono a 30–45 minuti e valgono una notte solo per le piscine naturali.",
    },

    montalcino: {
      chapter: "Nei dintorni",
      title: "Cose da fare",
      sub: "Things to do",
      lede: "Ecco alcuni dei nostri posti preferiti a Montalcino e dintorni. Quasi tutti entro un'ora d'auto.",
      items: [
        {
          name: "Degustazione di Brunello",
          desc: "Visitate una delle cantine per una degustazione — Banfi, Caparzo, Il Poggione, Argiano. Quasi tutte richiedono prenotazione.",
          meta: "Vino · 10–30 min",
        },
        {
          name: "Pienza",
          desc: "La 'città ideale' del Rinascimento — piccola, da girare a piedi, piena di pecorino. Perfetta per un pranzo lento e una passeggiata lungo le mura.",
          meta: "Borgo · 30 min",
        },
        {
          name: "San Quirico d'Orcia",
          desc: "Borgo medievale meravigliosamente conservato, con uno dei giardini più belli della Toscana (gli Horti Leonini).",
          meta: "Borgo · 25 min",
        },
        {
          name: "Bagno Vignoni",
          desc: "Un antico borgo costruito intorno a una vasca termale fumante. Bagnatevi gratis nelle sorgenti sotto, o prenotate la spa sopra.",
          meta: "Terme · 35 min",
        },
        {
          name: "Abbazia di Sant'Antimo",
          desc: "Un'abbazia romanica del XII secolo in una valle di ulivi. Silenziosa, suggestiva, bellissima.",
          meta: "Luogo · 15 min",
        },
        {
          name: "Strada della Val d'Orcia",
          desc: "La classica strada fiancheggiata da cipressi. Partite da Pienza, finite a Bagno Vignoni — l'ora dorata è qualcosa di incredibile.",
          meta: "In auto · 45 min",
        },
        {
          name: "Montalcino stessa",
          desc: "La Fortezza, le enoteche in piazza, vicoli stretti e panorami in ogni direzione.",
          meta: "Borgo · a piedi",
        },
      ],
    },

    gallery: {
      chapter: "Fotografie",
      title: "Galleria",
      sub: "Gallery",
      caption: "Foto e dettagli a seguire",
    },

    registry: {
      chapter: "Sui regali",
      title: "Lista nozze",
      sub: "Gifts",
      lede: "La vostra presenza è più che sufficiente. Davvero. Ma se volete contribuire alla nostra luna di miele o alla nostra prima casa insieme, ne saremmo molto grati.",
      comingSoonTag: "In arrivo",
      comingSoonTitle: "Stiamo organizzando il tutto",
      comingSoonBody:
        "Una lista nozze e un piccolo fondo per la luna di miele sono in preparazione. Condivideremo qui i dettagli — e nell'invito formale — più vicino alla data.",
      sectionHoney: "Luna di miele",
      sectionHoneyBody:
        "Pensiamo di sparire da qualche parte in tranquillità per qualche settimana dopo il matrimonio. Un contributo al viaggio sarebbe meraviglioso.",
      sectionHome: "La nostra casa",
      sectionHomeBody:
        "Una piccola lista curata di cose per la casa che stiamo mettendo su insieme. Con link, senza nessuna pressione.",
    },

    faq: {
      chapter: "Domande",
      title: "Domande frequenti",
      sub: "FAQ",
      lede: "Qualche domanda ricorrente, qui sotto. Se non trovate quello che cercate, scriveteci — l'indirizzo è in fondo a ogni pagina.",
      items: [
        {
          q: "Quando e dove?",
          a: "Sabato 3 luglio 2027 a Villa Ferrano, appena fuori Montalcino, in Toscana. La giornata sarà dalle 18:00 fino a mezzanotte.",
        },
        {
          q: "Che dress code?",
          a: "Elegante — garden-formal. Cerimonia e cena sono all'aperto, in parte su erba e ghiaia, quindi tacchi larghi o scarpe basse sono molto più comodi degli stiletti. Portate uno strato leggero per dopo cena.",
        },
        {
          q: "Quanti giorni devo prevedere?",
          a: "Prevedete di arrivare venerdì 2 luglio e ripartire domenica 4 luglio. Faremo un aperitivo informale il venerdì e un brunch tranquillo per i saluti la domenica.",
        },
        {
          q: "Posso portare un accompagnatore?",
          a: "Se l'invito menziona un accompagnatore, certo — includetene il nome nell'RSVP. Se avete dubbi, scriveteci pure.",
        },
        {
          q: "I bambini sono benvenuti?",
          a: "I figli dei parenti più stretti sono assolutamente benvenuti. Altrimenti, questa volta è solo per adulti — vogliamo che tutti, genitori compresi, si rilassino.",
        },
        {
          q: "Ci sarà una navetta per il matrimonio?",
          a: "Sì — organizzeremo delle navette tra Montalcino (e alcuni alloggi vicini) e Villa Ferrano. Punti di ritrovo e orari saranno condivisi più avanti.",
        },
        {
          q: "Esigenze alimentari?",
          a: "Indicatele nell'RSVP. Faremo del nostro meglio per ogni allergia e restrizione.",
        },
        {
          q: "Regali?",
          a: "La vostra presenza è già un regalo. Se volete fare di più, vedete la pagina Regali — ci saranno una lista nozze e un fondo per la luna di miele.",
        },
        {
          q: "Quando dovete sapere se posso venire?",
          a: "Ci farebbe piacere avere un sì o un no informale entro l'autunno 2026, per poter organizzare. L'RSVP definitivo può arrivare con l'invito formale, in primavera 2027.",
        },
      ],
    },

    footer: {
      tagline: "Sara & Lorenzo",
      date: "3 luglio 2027 · Villa Ferrano · Montalcino",
      contact: "Domande? Scriveteci a saraelorenzo@gmail.com",
      sign: "Con amore",
    },
  },
};

// React context for language
const LanguageContext = React.createContext({
  lang: "en",
  setLang: () => {},
  t: () => "",
});

function LanguageProvider({ children }) {
  const [lang, setLang] = React.useState(() => {
    try {
      return localStorage.getItem("sl-lang") || "en";
    } catch (e) {
      return "en";
    }
  });
  React.useEffect(() => {
    try {
      localStorage.setItem("sl-lang", lang);
    } catch (e) {}
    document.documentElement.setAttribute("lang", lang);
  }, [lang]);

  const t = React.useCallback(
    (path) => {
      const dict = STRINGS[lang] || STRINGS.en;
      const parts = path.split(".");
      let cur = dict;
      for (const p of parts) {
        if (cur == null) return path;
        cur = cur[p];
      }
      return cur == null ? path : cur;
    },
    [lang],
  );

  return (
    <LanguageContext.Provider value={{ lang, setLang, t }}>
      {children}
    </LanguageContext.Provider>
  );
}

function useT() {
  return React.useContext(LanguageContext);
}

Object.assign(window, { STRINGS, LanguageContext, LanguageProvider, useT });
